Last active
October 19, 2017 20:32
-
-
Save lhk/7498084b7b7e451f314985ec8242dd31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import requests | |
data = {"song_id": "sjrt56usng", | |
"author_id": "spdfhu", | |
"song_name": "best song ever", | |
"artist_name": "onehitwonder", | |
"voters": { | |
"wt": True | |
}} | |
party = r"-KwqGvSDvtKB35Tve50P/" | |
url = r"https://partyup-b194f.firebaseio.com/parties/" + party + "proposals.json" | |
r = requests.post(url, data=json.dumps(data)) | |
print(r.content) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment