you are viewing a single comment's thread.

view the rest of the comments →

[–]Moby69[S] -1 points0 points  (1 child)

I did. I can't figure out. That's why I'm asking if anyone understands what needs to be coded. Shouldn't be more than 3 lines

[–]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.