Skip to content

Instantly share code, notes, and snippets.

@agraebe
Created September 26, 2019 19:18
Show Gist options
  • Save agraebe/4800fc46516e8239fcd67b7640513237 to your computer and use it in GitHub Desktop.
Save agraebe/4800fc46516e8239fcd67b7640513237 to your computer and use it in GitHub Desktop.
Create a new trip
payload='{
"device_id": "<YOUR_DEVICE_ID>",
"destination": {
"geometry": {
"type": "Point",
"coordinates": [-122.398, 37.793]
}
}
}'
curl -X POST \
-u <YOUR_ACCOUNT_ID>:<YOUR_SECRET_KEY> \
https://v3.api.hypertrack.com/trips/ \
-H 'Content-Type: application/json' \
-d $payload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment