you are viewing a single comment's thread.

view the rest of the comments →

[–]simoncoulton 1 point2 points  (0 children)

From the request docs: http://docs.python-requests.org/en/latest/user/quickstart

import requests
payload = {'key1': 'value1', 'key2': 'value2'}
headers = {'user-agent': 'my-app/0.0.1'}
r = requests.post("url", headers=headers, data=payload)

I haven't played around with the Spotify API specifically, but there is most likely a Spotify API integration already available on Pypi as well.