requests设置Authorization

headers = {"Authorization", "Bearer {}".format(token_string)}
r = requests.get("https://api.spotify.com/v1/me/player/devices", headers=headers)

https://stackoverflow.com/questions/45064539/python-requests-library-header-authorization-issue

猜你喜欢

转载自www.cnblogs.com/fengff/p/9083565.html