基連接表示源和Adobe Experience Platform之間經過驗證的連接。
本教程將指導您完成建立基本連接的步驟 Salesforce Service Cloud 使用 Flow Service API。
本指南要求對Adobe Experience Platform的下列組成部分有工作上的理解:
以下各節提供了要成功連接到所需的其他資訊 Salesforce Service Cloud 使用 Flow Service API。
為了 Flow Service 連接 Salesforce Service Cloud,必須為以下連接屬性提供值:
憑據 | 說明 |
---|---|
username |
您的用戶名 Salesforce Service Cloud 用戶帳戶。 |
password |
您的密碼 Salesforce Service Cloud 帳戶。 |
securityToken |
您的安全令牌 Salesforce Service Cloud 帳戶。 |
connectionSpec.id |
連接規範返回源的連接器屬性,包括與建立基連接和源連接相關的驗證規範。 連接規範ID Salesforce Service Cloud 為: b66ab34-8619-49cb-96d1-39b37ede86ea 。 |
有關入門的詳細資訊,請參閱 此Salesforce服務雲文檔。
有關如何成功調用平台API的資訊,請參見上的指南 平台API入門。
基本連接將保留源和平台之間的資訊,包括源的驗證憑據、連接的當前狀態和唯一的基本連接ID。 基本連接ID允許您從源中瀏覽和導航檔案,並標識要攝取的特定項目,包括有關其資料類型和格式的資訊。
要建立基本連接ID,請向 /connections
提供端點 Salesforce Service Cloud 身份驗證憑據作為請求參數的一部分。
API格式
POST /connections
要求
以下請求為 Salesforce Service Cloud:
curl -X POST \
'https://platform.adobe.io/data/foundation/flowservice/connections' \
-H 'Authorization: Bearer {ACCESS_TOKEN}' \
-H 'x-api-key: {API_KEY}' \
-H 'x-gw-ims-org-id: {ORG_ID}' \
-H 'x-sandbox-name: {SANDBOX_NAME}' \
-H 'Content-Type: application/json' \
-d '{
"name": "Base connection for salesforce service cloud",
"description": "Base connection for salesforce service cloud",
"auth": {
"specName": "Basic Authentication",
"params": {
"username": "{USERNAME}",
"password": "{PASSWORD}",
"securityToken": "{SECURITY_TOKEN}"
}
},
"connectionSpec": {
"id": "b66ab34-8619-49cb-96d1-39b37ede86ea",
"version": "1.0"
}
}'
參數 | 說明 |
---|---|
auth.params.username |
與您的 Salesforce Service Cloud 帳戶。 |
auth.params.password |
與您的 Salesforce Service Cloud 帳戶。 |
auth.params.securityToken |
與您的 Salesforce Service Cloud 帳戶。 |
connectionSpec.id |
的 Salesforce Service Cloud 連接規範ID: b66ab34-8619-49cb-96d1-39b37ede86ea |
回應
成功的響應返回新建立的連接,包括其唯一標識符(id
)。 在下一步中瀏覽CRM系統需要此ID。
{
"id": "4267c2ab-2104-474f-a7c2-ab2104d74f86",
"etag": "\"0200f1c5-0000-0200-0000-5e4352bf0000\""
}
按照本教程,您建立了 Salesforce Service Cloud 基本連接使用 Flow Service API。 您可以在以下教程中使用此基本連接ID: