python from oauthlib.oauth1 import Client client = Client(client_key='CONSUMER_KEY', client_secret='CONSUMER_SECRET', resource_owner_key='ACCESS_TOKEN', resource_owner_secret='ACCESS_TOKEN_SECRET') uri, headers, body = client.sign(uri="https://api.example.com/endpoint", http_method="GET") response = requests.get(uri, headers=headers, data=body) if response.status_code == 200: print(response.json()) else:


上一篇:
下一篇:
切换中文