Skip to content

Instantly share code, notes, and snippets.

@jmwenda
Created May 20, 2014 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmwenda/cb02d1f9e17e9833f882 to your computer and use it in GitHub Desktop.
Save jmwenda/cb02d1f9e17e9833f882 to your computer and use it in GitHub Desktop.
curl --dump-header - -H "Content-Type: application/json" -H "X-CSRFToken: VhPYwzz4NJXnTPgkfSuSAQnN3HZ5AJj0" -H "Authorization: ApiKey jmwenda:123456789" -X POST --data '{"device": {"pk": 1}, "latitude": "latitude", "imei": "$$AF860041024247929", "time_stamp": "20140505211312", "altitude": 0, "speed": 0, "heading": "N", "longitude": "longitude"}' 'http://127.0.0.1/api/v1/devicerecord/?username=jmwenda&api_key=123456789'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment