This documentation is for the version 2 of the API of Publitrac. Please note that Publitrac V2 is in BETA and will rapidely evolve.
Every concerns or problems should be adressed quickly to Michel Frigon (mfrigon@publipage.com).
Sommaire
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.
...
URL: /auth/getToken | |
---|---|
Header | |
Authorization | Api key received within the application of Publitrac (See settings) |
Accept | application/json |
Content | |
No content for this one |
...
URL: /lead/delayedSync | |||
---|---|---|---|
Header | |||
Token | Token of authorization | ||
Accept | application/json | ||
Content | |||
| leadInfo represent the standard Publitrac informations that required. The email is mandatory as we are using this as a identifier LeadCustomFields is an associative array (fieldName => value) of the customField you want to edit/update/add in your lead. |
...