我想从我的Jupyther笔记本里调用adobeanyticsapi2.0。我不想在adobe服务器之间获取大量(或永久的)数据。在
我已经创建了一个API密钥集成,如下所述(https://www.adobe.io/authentication/auth-methods.html#!AdobeDocs/adobeio-auth/master/AuthenticationOverview/APIKeyIntegration.md)
如果我发送一个示例电话,假设:
r = requests.get("https://analytics.adobe.io/api/myID/dimensions?rsid=myreportsuite&locale=en_US&segmentable=true&reportable=true&classifiable=false")
显然,我得到了以下答案:
^{pr2}$如何在请求中包含Oauth令牌?在
您需要将它们放在
headers
中,特别是通过向get
函数的headers
参数提供一个字典,如文档所述here我从你的adobe链接中的
Step 3: Try It
获取了头名称。在相关问题 更多 >
编程相关推荐