Skip to content

Instantly share code, notes, and snippets.

@willkelly
Created June 3, 2014 17:44
Show Gist options
  • Save willkelly/c58e8f013f6a3fb3fba8 to your computer and use it in GitHub Desktop.
Save willkelly/c58e8f013f6a3fb3fba8 to your computer and use it in GitHub Desktop.
def zebra_execute(json, endpoint, token):
return requests.post(
endpoint,
headers={
"X-Auth-Token": token,
"Content-Type": "application/json",
"X-ZeroVM-Execute": "1.0"},
data=json).content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment