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.
原文:http://www.cnblogs.com/kingoscar/p/6064341.html