Authentication
Authentication is made through Oauth2.
Match an Influencer
Try to match an influencer out of an email address. If successful the influencer will be added to your CRM. This request do not return anything.
http
Content-Type: application/json
Authorization: Bearer <oauth2_token>
{
"event_key": "event_key",
"campaign_id": "my_campaign_id",
"email": "influencer@email.com"
}
List campaigns
To list the campaign currently available for your account.
http
Authorization: Bearer <oauth2_token>
Response
json
{
"campaigns": [
{
"id": 219,
"created_at": "2021-01-22T16:10:58Z",
"started_at": "0001-01-01T00:00:00Z",
"stopped_at": "0001-01-01T00:00:00Z",
"name": "my_campaign",
"active": true,
"type": "standalone",
"source_type": "zapier",
"created_by": 0,
"owned_by": "owner",
"optional_handle": false,
"stats": {
"total": 0,
"success": 0,
"failed": 0,
"pending": 0,
"suspectedSpam": 0,
"display": 0
},
"hash": ""
},
],
"meta": {
"total": 11
}
You will need to scroll through the campaigns array and find the campaigns with a combination of type: standalone and source_type: zapier.