Advertisement
Guest User

Untitled

a guest
Dec 1st, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. import http.client
  3. import json
  4. headers = {'Content-Type' : 'application/json', 'Accept' : 'application/json'}
  5. conn = http.client.HTTPConnection('dynick.frickel.club:8080')
  6. effectconf = {'Active' : True}
  7. jsonconf = json.dumps(effectconf)
  8. conn.request('PUT', '/devices/big/active', jsonconf, headers)
  9. conn.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement