A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: core/MY_Controller.php

Line Number: 258


File: /home/lourenss/www/pingen_www/application/core/MY_Controller.php
Line: 258
Function: _error_handler

File: /home/lourenss/www/pingen_www/application/core/MY_Controller.php
Line: 54
Function: get_browser_language

File: /home/lourenss/www/pingen_www/application/controllers/Api.php
Line: 7
Function: __construct

File: /home/lourenss/www/pingen_www/index.php
Line: 316
Function: require_once

Pingen | Send Letters Online for Private, Business and Software Developers

Example in Java

We're going to send an existing document with id 53 via post mail. In Color and as fast as possible!

HttpClient httpClient = new DefaultHttpClient();

try {
    HttpPost request = new HttpPost("https://api.pingen.com/document/send/id/30/token/MYTOKEN");

    JSONObject j = new JSONObject();
    j.put("speed", "1");
    j.put("color", "1");

    List nameValuePairs = new ArrayList(1);
	nameValuePairs.add(new BasicNameValuePair("data", j.toString()));

	UrlEncodedFormEntity params = new UrlEncodedFormEntity(nameValuePairs);
	request.addHeader("content-type", "application/x-www-form-urlencoded");
	HttpResponse response = httpClient.execute(request);

	// handle response here...
} catch (Exception ex) {
	// handle exception here
} finally {