This documentation is for the version 2 of the API of Publitrac. Please note that Publitrac V2 is in a BETA mode and every concern or problem should be adressed quickly to Michel Frigon (mfrigon@publipage.com).
Authentification
The authentification is use to obtain a valid token that your application will use to connect to each routes of the API. The token has a self-refreshing TTL (time to live) of 15 minutes. This means that the token lives 15 minutes after your last call and past this point, you will need to authenticate again.
Request
URL: /auth/getToken | |
---|---|
Header | |
Authorization | Api key received within the application of Publitrac (See settings) |
Accept | application/json |
Content | |
No content for this one |
Response
Header | |
No non-standard header | |
Content | |
{ "token" : "djs4fdn4dJTer489!" "ttl" : "900" } | |
Token to be used for further calls | |
Time to live of the token in seconds. (By default will be 900, i.e. 15 minutes) | |