A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: core/MY_Controller.php

Line Number: 258

Backtrace:

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

Field guide

The following fields are available in a send object

NameTypeExampleNotes
idint3The ID of the post
document_typeint1The object type
document_idint3The ID of document/letter to be sent
document_titlestringMypdf.pdfEither the PDF-Filename or Letter recipient based on document type.
datedatetime2012-08-09 10:20:30Date of sending
user_idint35User ID of creator
speedint1Speed of sending
colorint1If print is color or b/w
addressstringACME GmbH\nBernstrasse 12\n3001 Bern\nSwitzerlandFull recognized visible address
countrystringCHCountry for letter ISO, 2-digit
pagesint1Amount of pages
pagetypecollectionCollection of Pagetype Objects
costfloat1.4Cost for sending this document/letter
currencystringCHFCurrency that was used for billing
statusint200Status of this sending

Example

    {
        "id": 1,
        "document_type":1,
        "document_id": 1,
        "document_title": "Mypdf.pdf",
        "date": "2012-08-07 22:33:44",
        "user_id":35,
        "speed": 1,
        "color": 1,
        "address":"ACME GmbH\nBernstrasse 12\n3001 Bern\nSwitzerland",
        "country":"CH",
        "pages": 1,
        "pagetype":[
            {
                "number":1,
                "type":2,
                "color":1
            }
        ],
        "cost": 1.40,
        "currency": "CHF",
        "status": 100
    }
    

Status

StatusMeaning of status
100Ready/Pending
101Processing
102Waiting for confirmation
200Sent
201Retreived
300Some error occured and object wasn't sent
301Undeliverable
400Sending cancelled

Document types

IdType
1Document
2Letter