A PHP Error was encountered

Severity: Notice

Message: Undefined index: HTTP_ACCEPT_LANGUAGE

Filename: core/MY_Controller.php

Line Number: 240

Backtrace:

File: /var/www/pingen_website_production/application/core/MY_Controller.php
Line: 240
Function: _error_handler

File: /var/www/pingen_website_production/application/core/MY_Controller.php
Line: 54
Function: get_browser_language

File: /var/www/pingen_website_production/application/controllers/Api.php
Line: 7
Function: __construct

File: /var/www/pingen_website_production/index.php
Line: 316
Function: require_once

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

Access

You can access our API with the following Base-URL:

                    GET https://api.pingen.com/
                

Every possible API-call is built up with an endpoint and action. For example getting a list of documents targets the endpoint documents and the action is list.

                    GET https://api.pingen.com/documents/list/
                

Authentication

Every request has to contain a parameter token in the request URL.

                    GET https://api.pingen.com/documents/list/token/60abd.../
                

This token can be retreived when you're logged into your account under Settings->Users->(button)My API Token and can be regenerated at any time. When you regenerate your token, the current one is disabled.


URL Parameters

Nearly every requests can contain URL parameters that for example sorts lists or defines what objects you are manipulating.
These are passed in a key/value pair and do not require a specific order.

                    GET https://api.pingen.com/documents/list/key1/value1/key2/value2/token/60abd.../
                

Body Parameters

When performing a POST-Request, it will be sometimes necessary to provide body parameters in form of a JSON-Object passed in the POST-Variable data.

Example: Passing the Body Parameters send and sendspeed both set to 1 would look the following:

{
    "send":1,
    "sendspeed":1,
}