标签:bsp headers comm from apply while should command source
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.
标签:bsp headers comm from apply while should command source
原文地址:http://www.cnblogs.com/kingoscar/p/6064341.html