Created
September 26, 2019 19:18
-
-
Save agraebe/4800fc46516e8239fcd67b7640513237 to your computer and use it in GitHub Desktop.
Create a new trip
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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