首页 > 代码库 > 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