Before you can make use of the Wemap Services API, you need to register your applications. From the Wemap Pro portal click on your name in the upper right corner then select “Developer settings”.
Create your application and make a note of the client id and client secret.
You can now request an OAuth2 access token using Basic authentication as follows.
POST /v3.0/oauth2/token HTTP/1.1
Authorization: Basic c29tZS1jbGllbnQtaWQ6c29tZS1jbGllbnQtc2VjcmV0
HTTP/1.1 200 OK
"scope": "write read",
All Wemap API calls need to be authenticated by using a Bearer token in the Authorization header:
GET /some/endpoint HTTP/1.1
Authorization: Bearer <Access-Token>
Requests take either no data or JSON data as input, and return data as JSON. Make soure you set the correct Content-Type header when sending JSON:
POST /some/endpoint HTTP/1.1