docs: update README.md

This commit is contained in:
zhayujie
2023-02-10 00:56:17 +08:00
parent 848b83fe10
commit 25c2f1add7
2 changed files with 5 additions and 3 deletions

View File

@@ -17,8 +17,8 @@ class BaiduUnitBot(Bot):
return response.json()['result']['context']['SYS_PRESUMED_HIST'][1]
def get_token(self):
access_key = 'wdNwpvzh4fBr8xzTuPePOWhU'
secret_key = 'EUtLXyrogfTQV8nnjncnqNEfeyoHDUqS'
access_key = 'YOUR_ACCESS_KEY'
secret_key = 'YOUR_SECRET_KEY'
host = 'https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=' + access_key + '&client_secret=' + secret_key
response = requests.get(host)
if response: