创建 ServiceNow 基本连接使用 Flow Service API
基本连接表示源和Adobe Experience Platform之间经过身份验证的连接。
本教程将指导您完成创建基本连接的步骤。 Google ServiceNow 使用 Flow Service API.
快速入门
本指南要求您对Adobe Experience Platform的以下组件有一定的了解:
以下部分提供成功连接到 ServiceNow 服务器使用 Flow Service API。
收集所需的凭据
为了 Flow Service 以连接到 ServiceNow中,必须提供以下连接属性的值:
凭据
描述
endpoint
的端点 ServiceNow 服务器。
username
用于连接到 ServiceNow 服务器进行身份验证。
password
用于连接到 ServiceNow 服务器进行身份验证。
connectionSpec.id
连接规范返回源的连接器属性,包括与创建基础连接和源连接相关的身份验证规范。 的连接规范ID ServiceNow 为:
eb13cb25-47ab-407f-ba89-c0125281c563
.有关入门的更多信息,请参阅 [此ServiceNow文档](https://developer.servicenow.com/app.do#!/rest_api_doc?v=new york&id=r_TableAPI-GET).
使用平台API
有关如何成功调用Platform API的信息,请参阅 Platform API快速入门.
创建基本连接
基本连接会保留源和平台之间的信息,包括源的身份验证凭据、连接的当前状态以及唯一的基本连接ID。 基本连接ID允许您浏览和浏览源中的文件,并标识要摄取的特定项目,包括有关其数据类型和格式的信息。
POST要创建基本连接ID,请向 /connections
端点同时提供 ServiceNow 作为请求参数一部分的身份验证凭据。
API格式
POST /connections
请求
以下请求创建基本连接 ServiceNow:
curl -X POST \
'http://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": "Connection for service-now",
"description": "Connection for service-now,
"auth": {
"specName": "Basic Authentication",
"params": {
"endpoint": "{ENDPOINT}",
"username": "{USERNAME}",
"password": "{PASSWORD}"
}
},
"connectionSpec": {
"id": "eb13cb25-47ab-407f-ba89-c0125281c563",
"version": "1.0"
}
}'
参数
描述
auth.params.server
的端点 ServiceNow 服务器。
auth.params.username
用于连接到 ServiceNow 服务器进行身份验证。
auth.params.password
用于连接到 ServiceNow 服务器进行身份验证。
connectionSpec.id
此 ServiceNow 连接规范ID:
eb13cb25-47ab-407f-ba89-c0125281c563
响应
成功响应将返回新创建的连接,包括其唯一标识符(id
)。 在下一步中浏览您的CRM系统时需要此ID。
{
"id": "8a3ca3dd-6d00-4c95-bca3-dd6d00dc954b",
"etag": "\"8e0052a2-0000-0200-0000-5e25fb330000\""
}
后续步骤
按照本教程,您已创建了一个 ServiceNow 基本连接使用 Flow Service API。 您可以在以下教程中使用此基本连接ID:
recommendation-more-help
337b99bb-92fb-42ae-b6b7-c7042161d089