我正在尝试使用 Azure 数据工厂通过 REST API 从 Pendo 获取数据。此活动的 PYTHON 代码是
import requests
url = "https://app.pendo.io/api/v1/aggregation"
data = "{\"response\":{\"mimeType\":\"application/json\"},\"request\":{\"pipeline\":[{\"source\":{\"guideEvents\":null,\"timeSeries\":{\"first\":\"1506977216000\",\"count\":-10,\"period\":\"dayRange\"}}}]}}"
headers = {
'x-pendo-integration-key': "[add_your_pendo_int_key_here]",
'content-type': "application/json"
}
response = requests.post(url, data = data, headers = headers)
如何通过 Azure 数据工厂定义代码的数据部分?我已将 content-type 和 x-pendo-integration-key 放在附加标题中。
扬帆大鱼
婷婷同学_
拉莫斯之舞
随时随地看视频慕课网APP
相关分类