檢索配置檔案時使用 GET 請求。
然後,可以使用篩選器、排序和分頁來細化搜索。 有關詳細資訊,請參閱 其他操作 的子菜單。
此外,Campaign StandardAPI允許您根據以下欄位之一搜索配置檔案:電子郵件、名字、姓氏或任何自定義欄位。 如需詳細資訊,請參閱本章節。
示例請求
檢索所有配置式的示例GET請求。
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/profile \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
響應請求。
{
"content": [
{
"PKey": "<PKEY>",
"firstName": "John",
"lastName":"Doe",
"birthDate": "1980-10-24",
...
},
...
}
檢索前10個電子郵件值的示例GET請求。
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/profile/email?_lineCount=10 \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
響應請求。 「下一個」節點返回URL,該URL允許您訪問下一個10個電子郵件值。
{
"content": [
"amy.dakota@mail.com",
"kristen.smith@mail.com",
"omalley@mail.com",
"xander.harrys@mail.com",
"jane.summer@mail.com",
"gloria.boston@mail.com",
"edward.snow@mail.com",
"dorian.simons@mail.com",
"peter.paolini@mail.com",
"mingam+test08@adobe.com"
],
"next": {
"href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/profile/email?_lineCount=10&_
lineStart=@Qy2MRJCS67PFf8soTf4BzF7BXsq1Gbkp_e5lLj1TbE7HJKqc"
}
}
的 filterType 參數允許您基於以下欄位之一檢索配置檔案:擴展配置檔案資源時在「高級」篩選中添加的電子郵件、名字、姓氏或任何自定義欄位。
搜索區分大小寫,僅對前置詞執行。 例如,您將無法使用其姓氏的最後字母查找配置檔案。
示例請求
基於名字篩選配置檔案的示例請求。
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/profile/byText?text=John&filterType=firstName \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
根據姓氏篩選配置檔案的示例請求。
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/profile/byText?text=Miller&filterType=lastName \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
根據電子郵件篩選配置檔案的請求示例。
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/profile/byText?text=John%40gmail.com&filterType=email \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'
基於「業餘」自定義欄位篩選配置檔案的示例請求。
-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServicesExt/profile/byText?cusHobby=Dancing&filterType=Hobby \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'