Comparaison des versions

Légende

  • Ces lignes ont été ajoutées. Ce mot a été ajouté.
  • Ces lignes ont été supprimées. Ce mot a été supprimé.
  • La mise en forme a été modifiée.

This documentation is for the version 2 of the API of Publitrac. Please note that Publitrac V2 is in BETA and will rapidely evolve.

...

URL: /auth/getToken
Header
AuthorizationApi key received within the application of Publitrac (See settings)
Acceptapplication/json
Content
No content for this one

...

URL: /lead/delayedSync
Header
TokenToken of authorization
Acceptapplication/json
Content


Bloc de code
{ 
     "operationsleadInfo": {
         "mergeAnonymousemail" : true,"john.doe@provider.com"
 "useToken": true  },  "leadInfo": {  "crmLeadId": 12387,
         "jobTitle": "Awesome Programmer",
         "firstName": "John",
         "lastName": "Doe"
     },
     "leadCustomField": {
         "customField1": "Value",
         "customField2": "Value2"
     }

}
}





leadInfo represent the standard Publitrac informations that required. The email is mandatory as we are using this as a identifier
(this will change in a short future). Each field details is available here: List and description of all lead fields





LeadCustomFields is an associative array (fieldName => value) of the customField you want to edit/update/add in your lead.

Response

Header
No non-standard header
Content

{

'status' : 'success',

'code' : 200

}


Message of status (See next table)
Code of response (See next table)

...