1、baidu-api.properties文档
serverUrl=https://api.baidu.com
username=xx
password= xx
token=xx
#Please keep these values unless you know exactly about their meanings.
connectTimeoutMills=11000
readTimeoutMills=1800000
disableCNCheck=true
compressMessage=true
protocol=JSON
#---------------------------
#OAUTH related configurations
#---------------------------
#SYSTEM CONFIG: Please keep these values unless you know exactly about their meanings.
open2OauthServerUrl=https://open2.baidu.com
authorizeUrl=/oauth2/authorize
accesstokenUrl=/oauth2/token
#
##CLIENT CONFIG: Please set these values to your own app configurations.
client_id=your_app_key
client_secret=your_app_secret
redirect_url=your_redirect_url
2、调用接口
package com.Http;
import com.baidu.drapi.autosdk.core.CommonService;
import com.baidu.drapi.autosdk.co