Created
April 24, 2020 11:16
-
-
Save buremba/83776f0ef7aaf3ff2c1dcbef8eafd5b6 to your computer and use it in GitHub Desktop.
Example CURL request
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
curl --request POST \ | |
--url https://your-api-url.getrakam.com/event/batch \ | |
--data '{"api":{"api_key": "API_KEY"},"events":[ | |
{"collection": "app_launch", "properties": { | |
"screen": "homepage", | |
"user_gender": "male", | |
"_user": "23", | |
"_ip": true, | |
"id": "ae9c718d-f405-477b-b07c-a5230e7620fd", | |
"_time": "2020-04-24T11:13:23.915Z" | |
}}]}' | |
---- | |
{ | |
event_type: 'app_launch', | |
_time: "2020-04-24T11:13:23.915Z", | |
_user: "23", | |
"properties: { | |
"screen": "homepage", | |
"user_gender": "male", | |
"__ip": "24.543.66.45", | |
"_city": "London", | |
"_country_code": "UK" | |
"_latitude": 34.5435345, | |
"_latitude": 4.5435345, | |
"_region": "Bay Dist" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment