首页 > 代码库 > Working with Data Sources 2
Working with Data Sources 2
1. While we would like to get some data from the server with authorization, we should apply token from the website frist. Then we pass token in the request command by using headers.
headers = {"Authorization": "token 1f36137fbbe1602f779300dad26e4c1b7fbab631"}
response = requests.get("https://api.github.com/users/VikParuchuri", headers=headers)
2.
Working with Data Sources 2
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。