Campaigns
GET https://api.eqworks.io/beta/campaigns/?cuid={{customerId}}&stats=false&state=completed
Fetches the available campaigns for a given ATOM customer
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
cuid | string | Customer ID | |
stats | boolean | BOOL :: Need stats to be inline | |
state | string | STRING :: State of the campaigns |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
eq-api-jwt | string | Valid ATOM JWT Token | |
eq-api-user | string | Email address of the authenticated user |
RESPONSES
status: OK
{"ancestors":[{"HasContract":1,"ID":172,"RevTypes":[],"level":"wl","name":"Sample Whitelabel"},{"Currency":"CAD","ID":14101,"Wallet":null,"level":"customer","name":"Sample Customer"}],"campaigns":{"72111":{"CampCode":72111,"DaysLeft":-2,"EndDate":"Thu, 31 Oct 2019 23:59:00 GMT","Name":"Volkswagen ","StartDate":"Fri, 18 Oct 2019 00:00:00 GMT","TimeZone":"America/Toronto","TotalActions":null,"TotalClicks":4256,"TotalDays":14,"TotalImpressions":1913021,"TotalSpend":15304.168}}}