Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- url = 'https://chat-example-97c62.firebaseio.com/Movie1.json'
- postdata = {
- 'date': str(time.asctime( time.localtime(time.time()) )),
- 'temp': str("Hello from Kodi")
- }
- req = urllib2.Request(url)
- req.add_header('Content-Type','application/json')
- data = json.dumps(postdata)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement