Skip to content

Instantly share code, notes, and snippets.

@buremba
Created April 24, 2020 11:16
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 buremba/83776f0ef7aaf3ff2c1dcbef8eafd5b6 to your computer and use it in GitHub Desktop.
Save buremba/83776f0ef7aaf3ff2c1dcbef8eafd5b6 to your computer and use it in GitHub Desktop.
Example CURL request
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