admin管理员组

文章数量:1582926


获取api_key
api_key : GSccEhhbzxM4jKi5kqABPfwn
secret_key : CDGOGIE8ZAIP3qooKbUpLpUrxnP2PUvo
get:
http://developer.baidu/rest/2.0/dev/v1/app/base/get?app_id=14512550&access_token=10.182e0fcde4fc1551180b8303cd35dcfd.1540223376.1183630

 

1.在浏览器中输入:获取授权码:2220bc6cbf1dc533cce7968963f20c23
https://openapi.baidu/oauth/2.0/authorize?response_type=code&client_id=GSccEhhbzxM4jKi5kqABPfwn&redirect_uri=oob


3.通过刚刚新建应用的API Key获取device code和user_code
curl -k -L -d "client_id=GSccEhhbzxM4jKi5kqABPfwn&response_type=device_code&scope=basic,netdisk" "https://openapi.baidu/oauth/2.0/device/code"
{"device_code":"b4adab18f1ef0807d62cebddac2adea7","user_code":"u67xpvun","verification_url":"https:\/\/openapi.baidu\/device","qrcod

本文标签: 百度网API