【问题标题】:Accessing MLC API访问 MLC API
【发布时间】:2022-11-05 02:54:58
【问题描述】:

我想在 Python 中使用这个 API https://public-api.themlc.com/api/doc 访问数据。 此 API 文档由 MLC 公司提供,他们还为我提供了访问此 API 的 ID 和密码。我浏览了文档,但没有设法提取任何数据。

当前代码如下

import requests
from requests.auth import HTTPBasicAuth
  
# Making a get request
response = requests.get('https://public-api.themlc.com/oauth/refresh',
            auth = HTTPBasicAuth('xx', 'xy'))
  
# print request object
print(response)

电流输出

<Response [404]>

【问题讨论】:

  • 我知道它需要使用“public-api.themlc.com/oauth/token”URL 进行身份验证,但我仍然无法访问数据。我无法理解参考令牌参数到底是什么。

标签: python python-3.x oauth-2.0 oauth


【解决方案1】:

你好吗?我们有同样的问题。如果您能找到提取数据的方法,请告诉我。

我们还从 MLC 收到了访问此 API 的 ID 和密码,但没有其他文档。

【讨论】:

    猜你喜欢
    • 2018-08-01
    • 2017-07-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-10-11
    • 2016-11-09
    • 1970-01-01
    相关资源
    最近更新 更多