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

You can get your post calculations with the following URL:

                    GET https://api.pingen.com/calculator/post/
                

URL Parameters

NameTypeRequiredDefaultOptionsNotes
countrystringyesCHCountry of post destination
printintyes0 - black&white
1 - color
Print option for black/color
speedintyes1 - priority
2 - economy
Speed option for normal/express
planintyes1 - private
2 - professional
3 - business
4 - integrator
Your current plan id
documentsintno1Number of documents to send
currencystringyesCurrency of calculation
pages_normalintno0Number of normal pages
pages_esrintno0Number of ESR pages


Example: Making a request for calculation of post send to Switzerland, two color documents with 3 normal pages each, with economy sending for professional plan and payment in swiss franks:

                    GET https://api.pingen.com/calculator/post/country/CH/print/1/speed/2/plan/2/documents/2/currency/CHF/pages_normal/3/pages_esr/0
                

Response

NameTypeNotes
errorbooleanIs true if an error occured
errorcodeintCode of the error. Only returned if error is true.
errormessagestringInformational message about the error. Only returned if error is true.
totalfloatTotal cost calculation
currencystringCurrency of cost

Example response:

    {
        "error":false,
        "total":1.20,
        "currency":"CHF"
    }
    

You can get your fax calculations with the following URL:

                    GET https://api.pingen.com/calculator/fax/
                

URL Parameters

NameTypeRequiredDefaultOptionsNotes
numberstringyesFax number starting with country code and plus sign at beginning
pagesintno1Number of pages in document
documentsintno1Number of documents to send by fax
currencystringyesCurrency of calculation


Example: Making a request for calculation of fax send to number +410123456789

                    GET https://api.pingen.com/calculator/fax/
                

Response

NameTypeNotes
errorbooleanIs true if an error occured
errorcodeintCode of the error. Only returned if error is true.
errormessagestringInformational message about the error. Only returned if error is true.
totalfloatTotal cost calculation
currencystringCurrency of cost

Example response:

    {
        "error":false,
        "total":1.20,
        "currency":"CHF"
    }