Advertisement
Guest User

Untitled

a guest
Apr 2nd, 2021
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. import requests
  2.  
  3. auth_dict = {"Authorization": "Token %s" % token}
  4. data = {
  5. "health": "Good"
  6. }
  7. response = requests.put(host + "api/v0.2/devices/beagleboneblack01/", {data}, headers=auth_dict)
  8. print(response.status_code)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement