0
我需要一些帮助来从他的REST API中使用Companies House API获取文档。我现在不知道如何获得token_type
和access_token
。REST API公司House(UK)获取文档
这里是API:https://developer.companieshouse.gov.uk/
这里的问题是:https://developer.companieshouse.gov.uk/document/docs/document/id/content/fetchDocument.html
谁能帮我这个?
p.s.我正在使用python3.5和请求模块。
感谢您的胖答案。他们提供了我的API密钥,它是相同的access_令牌? –
是的,你发送'授权:基本EXAMPLE_KEY'用你的密钥替换example_key。 – gingerbreadboy
响应状态 0 [Exception ...“”nsresult:“0x805e0006()”location:“JS frame :: https://developer.companieshouse.gov.uk/script/jquery-1.8.0.min .js :: .send :: line 2“data:no] Response body 联系API时失败。一些可能的原因是连接问题或跨源资源共享保护。请检查针对APIKey/OAuth2注册注册的javascript域。 –