ALPHA

Use this webservice to request an access token.

Recommended Flow

Besides this token does not expires it might occur that the token is not valid anymore or your app lose it. In that case, any other call to the app will cause a HTTP 403 error. In this case you app should call this /authorize method again to get a new token and continue performing the original operation.

Resource information
AuthenticationRequired
HTTP MethodPOST
ResponseJSON
Version1

Resource URL

https://mapaprop.app/api/action/oauth2-v1/authorize

Parameters

KeyTypeRequiredDescription
client_idstringyesThe CLIENT ID provided by Mapaprop
client_secretstringyesThe CLIENT SECRET provided by Mapaprop
grant_typestringyesUse the constant text client_credentials

Sample code

POST /api/action/oauth2-v1/authorize HTTP/1.1
Host: mapaprop.app
Content-Type: application/x-www-form-urlencoded
Content-Length: 0

client_id=jfioejweu8wu9fjsHUGldfja9ofwjf&client_secret=UHY&T&FOIHuihd8w2hg3kh8Y&grant_type=client_credentials

Response

You have to parse the JSON response in order to obtain your access token.

ObjectFieldTypeRequiredDescription
ResponseaccessTokenstringyesThe access token needed for verification
tokenTypestringyesAlways bearer

Sample code

{
    "accessToken": "7147c222b5989488fd14d28d20e099b0",
    "tokenType": "bearer"
}

Manual Method

To generate the token manually use our app http://mapaprop.github.io