• <table id="0ws66"></table>
  • <noscript id="0ws66"><source id="0ws66"></source></noscript>

    用python的request模塊獲取access_token時提示報錯

    作者:jd3096 | 更新時間:2021-05-16 | 瀏覽量:465

    這是我的代碼

    import requests
    import json
    url='http://www.embanju.org/oauth/token'
    values={"cliend_id":"1109","client_secret":"fc1c890e2e","username":"15790","password":"0894aef469","grant_type":"password"}
    headers={"Content-Type": "application/x-www-form-urlencoded"}
    jdjd=requests.post(url=url,data=values)
    print(jdjd.text)

    錯誤代碼

    {"error":"invalid_client","error_description":"Client credentials were not found in the headers or body"}

    請問可能是什么原因呢?


    評論:共1條

    貝殼物聯 評論于:2021-05-21 09:28:58
    可能請求方式,或請求信息沒有正確發送。
    返回頂部
    国产综合在线