2024-03-28 13:52:48 发布
网友
如何使用python以json格式返回响应?在
# Request curl -H "Authorization: Bearer <personal_access_token>" \https://app.asana.com/api/1.0/projects/1331
import requests url = 'https://app.asana.com/api/1.0/projects/1331' headers = {'Authorization': 'Bearer {}'.format(token)} response = requests.get(url, headers=headers).json()
您应该能够使用requests模块来实现这一点
requests
import requests requests.get('https://app.asana.com/api/1.0/projects/1331',headers={'Authorization': 'Bearer <personal_access_token>'}).json()
您应该能够使用
requests
模块来实现这一点相关问题 更多 >
编程相关推荐