-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
1,217 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -220,7 +220,7 @@ export const data = [ | |
}, | ||
{ | ||
"name": "tiktok_audience", | ||
"description": "Test 1: Containing SHA256 and MD5 traits", | ||
"description": "Test 2: Containing SHA256 and MD5 traits", | ||
"feature": "processor", | ||
"module": "destination", | ||
"version": "v0", | ||
|
@@ -480,5 +480,375 @@ export const data = [ | |
] | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "tiktok_audience", | ||
"description": "Test 3: Containing all possible traits", | ||
"feature": "processor", | ||
"module": "destination", | ||
"version": "v0", | ||
"input": { | ||
"request": { | ||
"body": [ | ||
{ | ||
"message": { | ||
"userId": "user 1", | ||
"type": "audiencelist", | ||
"properties": { | ||
"listData": { | ||
"add": [ | ||
{ | ||
"EMAIL_SHA256": "[email protected]", | ||
"PHONE_SHA256": "+129988776655", | ||
"IDFA_SHA256": "1234lkasfjdalj12321", | ||
"AAID_SHA256": "000999OOOQQQQ", | ||
"AAID_MD5": "000999OOOQQQQ", | ||
"IDFA_MD5": "1234lkasfjdalj12321" | ||
}, | ||
{ | ||
"EMAIL_SHA256": "[email protected]", | ||
"PHONE_SHA256": "+129988776677", | ||
"IDFA_SHA256": "1234lkasfjdalj114455", | ||
"AAID_SHA256": "000999OOOPPPP", | ||
"AAID_MD5": "000999OOOPPPP", | ||
"IDFA_MD5": "1234lkasfjdalj114455" | ||
} | ||
] | ||
} | ||
}, | ||
"context": { | ||
"ip": "14.5.67.21", | ||
"library": { | ||
"name": "http" | ||
}, | ||
"externalId": [ | ||
{ | ||
"type": "TIKTOK_AUDIENCE-23856594064540489", | ||
"identifierType": "EMAIL_SHA256" | ||
} | ||
], | ||
"destinationFields": "EMAIL_SHA256, PHONE_SHA256, IDFA_SHA256, AAID_SHA256, AAID_MD, IDFA_MD5" | ||
}, | ||
"timestamp": "2020-02-02T00:23:09.544Z" | ||
}, | ||
"metadata": { | ||
"jobId": 1, | ||
"secret": { | ||
"accessToken": "dummyAccessToken", | ||
"advertiserIds": [ | ||
"dummyAdverTiserID" | ||
] | ||
} | ||
}, | ||
"destination": { | ||
"DestinationDefinition": { | ||
"Config": { | ||
"cdkV2Enabled": true | ||
} | ||
}, | ||
"Config": { | ||
"isHashRequired": true, | ||
"registerDeviceOrBrowserApiKey": true, | ||
"apiKey": "intercomApiKey", | ||
"appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", | ||
"collectContext": false | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"output": { | ||
"response": { | ||
"status": 200, | ||
"body": [ | ||
{ | ||
"output": { | ||
"version": "1", | ||
"type": "REST", | ||
"method": "POST", | ||
"endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/", | ||
"headers": { | ||
"Access-Token": "dummyAccessToken", | ||
"Content-Type": "application/json" | ||
}, | ||
"params": {}, | ||
"body": { | ||
"JSON": { | ||
"batch_data": [ | ||
[ | ||
{ | ||
"id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b", | ||
"audience_ids": [ | ||
"23856594064540489" | ||
] | ||
}, | ||
{ | ||
"id": "31e78a3bf9ce2b43316f64fe883a531d6266938091e94e2f2480272481163dee", | ||
"audience_ids": [ | ||
"23856594064540489" | ||
] | ||
}, | ||
{ | ||
"id": "0259f595f7172c8dd692a5c37b4d296939555f862aae8adb964391bdb65006ab", | ||
"audience_ids": [ | ||
"23856594064540489" | ||
] | ||
}, | ||
{ | ||
"id": "b06fbe7a29f33576a792ba3df3c9bf838cd26ea88cf574285fa60dc0234a8485", | ||
"audience_ids": [ | ||
"23856594064540489" | ||
] | ||
}, | ||
{}, | ||
{ | ||
"id": "32ee3d063320815a13e0058c2498ff76", | ||
"audience_ids": [ | ||
"23856594064540489" | ||
] | ||
} | ||
], | ||
[ | ||
{ | ||
"id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579", | ||
"audience_ids": [ | ||
"23856594064540489" | ||
] | ||
}, | ||
{ | ||
"id": "fb40adc7debbf40e7b45b0a4a91886785dff1a28809276f95f1c44f7045f9b4d", | ||
"audience_ids": [ | ||
"23856594064540489" | ||
] | ||
}, | ||
{ | ||
"id": "e6bbdf34c5f3472f31b2923a26811560a599233f3dea4c9971595c3bb7b1e8dc", | ||
"audience_ids": [ | ||
"23856594064540489" | ||
] | ||
}, | ||
{ | ||
"id": "661125f7d337811256c5b55996b22c89047804dcec494db72659e4be71e03091", | ||
"audience_ids": [ | ||
"23856594064540489" | ||
] | ||
}, | ||
{}, | ||
{ | ||
"id": "94162773066d6ae88b2658dc58ca2317", | ||
"audience_ids": [ | ||
"23856594064540489" | ||
] | ||
} | ||
] | ||
], | ||
"id_schema": [ | ||
"EMAIL_SHA256", | ||
"PHONE_SHA256", | ||
"IDFA_SHA256", | ||
"AAID_SHA256", | ||
"AAID_MD", | ||
"IDFA_MD5" | ||
], | ||
"advertiser_ids": [ | ||
"dummyAdverTiserID" | ||
], | ||
"action": "add" | ||
}, | ||
"JSON_ARRAY": {}, | ||
"XML": {}, | ||
"FORM": {} | ||
}, | ||
"files": {}, | ||
"userId": "" | ||
}, | ||
"metadata": { | ||
"jobId": 1, | ||
"secret": { | ||
"accessToken": "dummyAccessToken", | ||
"advertiserIds": [ | ||
"dummyAdverTiserID" | ||
] | ||
} | ||
}, | ||
"statusCode": 200 | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"name": "tiktok_audience", | ||
"description": "Test 4: Considering some null values", | ||
"feature": "processor", | ||
"module": "destination", | ||
"version": "v0", | ||
"input": { | ||
"request": { | ||
"body": [ | ||
{ | ||
"message": { | ||
"userId": "user 1", | ||
"type": "audiencelist", | ||
"properties": { | ||
"listData": { | ||
"add": [ | ||
{ | ||
"EMAIL_SHA256": "[email protected]", | ||
"PHONE_SHA256": "+129988776655", | ||
"AAID_MD5": "000999OOOQQQQ", | ||
"IDFA_MD5": "1234lkasfjdalj12321" | ||
}, | ||
{ | ||
"EMAIL_SHA256": "[email protected]", | ||
"AAID_SHA256": "000999OOOPPPP", | ||
"AAID_MD5": "000999OOOPPPP", | ||
"IDFA_MD5": "1234lkasfjdalj114455" | ||
} | ||
] | ||
} | ||
}, | ||
"context": { | ||
"ip": "14.5.67.21", | ||
"library": { | ||
"name": "http" | ||
}, | ||
"externalId": [ | ||
{ | ||
"type": "TIKTOK_AUDIENCE-23856594064540489", | ||
"identifierType": "EMAIL_SHA256" | ||
} | ||
], | ||
"destinationFields": "EMAIL_SHA256, PHONE_SHA256, IDFA_SHA256, AAID_SHA256, AAID_MD, IDFA_MD5" | ||
}, | ||
"timestamp": "2020-02-02T00:23:09.544Z" | ||
}, | ||
"metadata": { | ||
"jobId": 1, | ||
"secret": { | ||
"accessToken": "dummyAccessToken", | ||
"advertiserIds": [ | ||
"dummyAdverTiserID" | ||
] | ||
} | ||
}, | ||
"destination": { | ||
"DestinationDefinition": { | ||
"Config": { | ||
"cdkV2Enabled": true | ||
} | ||
}, | ||
"Config": { | ||
"isHashRequired": true, | ||
"registerDeviceOrBrowserApiKey": true, | ||
"apiKey": "intercomApiKey", | ||
"appId": "9e9cdea1-78fa-4829-a9b2-5d7f7e96d1a0", | ||
"collectContext": false | ||
} | ||
} | ||
} | ||
] | ||
} | ||
}, | ||
"output": { | ||
"response": { | ||
"status": 200, | ||
"body": [ | ||
{ | ||
"output": { | ||
"version": "1", | ||
"type": "REST", | ||
"method": "POST", | ||
"endpoint": "https://business-api.tiktok.com/open_api/v1.3/segment/mapping/", | ||
"headers": { | ||
"Access-Token": "dummyAccessToken", | ||
"Content-Type": "application/json" | ||
}, | ||
"params": {}, | ||
"body": { | ||
"JSON": { | ||
"batch_data": [ | ||
[ | ||
{ | ||
"id": "ac0f1baec38a9ef3cfcb56db981df7d9bab2568c7f53ef3776d1c059ec58e72b", | ||
"audience_ids": [ | ||
"23856594064540489" | ||
] | ||
}, | ||
{ | ||
"id": "31e78a3bf9ce2b43316f64fe883a531d6266938091e94e2f2480272481163dee", | ||
"audience_ids": [ | ||
"23856594064540489" | ||
] | ||
}, | ||
{}, | ||
{}, | ||
{}, | ||
{ | ||
"id": "32ee3d063320815a13e0058c2498ff76", | ||
"audience_ids": [ | ||
"23856594064540489" | ||
] | ||
} | ||
], | ||
[ | ||
{ | ||
"id": "49eaeca26c878f268ad33af8cfa8194ca5b8b8e448b1c775bf9153a2de734579", | ||
"audience_ids": [ | ||
"23856594064540489" | ||
] | ||
}, | ||
{}, | ||
{}, | ||
{ | ||
"id": "661125f7d337811256c5b55996b22c89047804dcec494db72659e4be71e03091", | ||
"audience_ids": [ | ||
"23856594064540489" | ||
] | ||
}, | ||
{}, | ||
{ | ||
"id": "94162773066d6ae88b2658dc58ca2317", | ||
"audience_ids": [ | ||
"23856594064540489" | ||
] | ||
} | ||
] | ||
], | ||
"id_schema": [ | ||
"EMAIL_SHA256", | ||
"PHONE_SHA256", | ||
"IDFA_SHA256", | ||
"AAID_SHA256", | ||
"AAID_MD", | ||
"IDFA_MD5" | ||
], | ||
"advertiser_ids": [ | ||
"dummyAdverTiserID" | ||
], | ||
"action": "add" | ||
}, | ||
"JSON_ARRAY": {}, | ||
"XML": {}, | ||
"FORM": {} | ||
}, | ||
"files": {}, | ||
"userId": "" | ||
}, | ||
"metadata": { | ||
"jobId": 1, | ||
"secret": { | ||
"accessToken": "dummyAccessToken", | ||
"advertiserIds": [ | ||
"dummyAdverTiserID" | ||
] | ||
} | ||
}, | ||
"statusCode": 200 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] |
Oops, something went wrong.