我无法从API Trustpilot获得业务单元ID。我试着用一种不同的方式来授权,但还是未经授权。来自https://developers.trustpilot.com/business-units-api#find-a-business-unit的文档没有帮助。我也尝试过令牌,但仍然有相同的问题-未经授权。
有人能告诉我我做错了什么吗?
我的Python代码:
import requests
apikey= xxxxx
URL = 'https://api.trustpilot.com/v1/business-units/find?name=b_name?apikey={0}'.format(apikey)
response = requests.request("get", URL)
response.reason发布于 2020-09-01 10:12:53
我发现如果每个work都添加到标题中,它就会工作。最后看起来是这样的:
import requests
apikey= xxxxx
URL = 'https://api.trustpilot.com/v1/business-units/find?name=b_name'
payload = {'apikey': apikey}
response = requests.request("get", URL, headers= payload)
response.reasonhttps://stackoverflow.com/questions/63657992
复制相似问题