Authentication
In this section, you will learn how to properly access the API via API login and password.
Login credentials
To start working with the API, you must have an API login and password (don't confuse login and password from mobile-calendar account).
How to get credentials data?
Log in to https://mobile-calendar.com.
Go to Synchronization > Rest API.
At this point, you receive your login details.
API account authentication - Basic Auth
The API uses the underlying HTTP authentication scheme. You must include an Authorization header with each mobile-calendar API query.
An example of cURL request in PHP
The following script gets prices for the date range 1/1/2021 - 1/31/2021. Including the header is visible on line 10.
Remember to add a header: Content-Type: application/json
Authorization error
The authorization error returns the error code 401 Unauthorized and the JSON response shown below:
Troubleshooting
You have a problem? contact us: info@mobile-calendar.com
Last updated