import requests
url = "https://aip.baidubce.com/oauth/2.0/token"
data = {
'grant_type':'client_credentials',
'client_id':API Key,
'client_secret':Secret Key,
}
response = requests.post(url=url,data=data)
print(response.text)
import requests
url = "https://aip.baidubce.com/oauth/2.0/token"
data = {
'grant_type':'client_credentials',
'client_id':API Key,
'client_secret':Secret Key,
}
response = requests.post(url=url,data=data)
print(response.text)