Access keys

Create a Planviewer API access key, and for all server-side requests provide the user and password as HTTP basic auth parameters. These credentials identify the application for which these requests are made.

ANY https://www.planviewer.nl/maps_api/v2/server
ANY https://www.planviewer.nl/product_api/v1
Request Headers:
 
  • Authorization – Base64 user and password separated with ‘:’ as per HTTP standard.

Example request:

Given API acces key 47e7df66f957 and secret cynaivrjre:

POST /maps_api/v2/server/viewers
Host: planviewer.nl
Accept: application/json
Authorization: Basic NDdlN2RmNjZmOTU3OmN5bmFpdnJqcmU=

Or using curl:

$ curl https://planviewer.nl/maps_api/v1/server/map -u 47e7df66f957:cynaivrjre

Example response:

{
    "error": {
        "code": 401,
        "message": "Unauthorized"
    }
}