Add app push events
Description
Adds application push events.
Request URL
Method: POST
https://example.com/api/v1.1/pushes/post_events
Request parameters
| Parameter | Type | Example | Required | Description | 
|---|---|---|---|---|
| token | string | "abcdefghijklmnqrstuvwxyz" | Yes | API token | 
| events | int | 1 - delivered 2 - opened 3 - delivered and opened  | Yes | Events | 
| launch_id | int | 1 | Yes | Is sent alongside push from Altcraft to Data payload. | 
| provider | string | "android-firebase" | Yes | Push provider | 
| subscription_id | string | "subscriptionid" | Yes | subscription ID | 
| uid | string | "uid" | Yes | Is sent alongside push from Altcraft to Data payload. | 
Request example
- JSON
 - XML
 
{
  "token": "abcdefghijklmnqrstuvwxyz",
  "events": 1,
  "launch_id": "launch_id",
  "provider": "android-firebase",
  "subscription_id": "subscriptionid",
  "uid": "uid"
}
<xml>
 <token>abcdefghijklmnqrstuvwxyz</token>
  <events>1</events>
  <launch_id>launch_id</launch_id>
  <provider>android-firebase</provider>
  <subscription_id>subscriptionid</subscription_id>
  <uid>uid</uid>
</xml>
Request example with uid in special format
- JSON
 - XML
 
{
  "token": "abcdefghijklmnqrstuvwxyz",
  "events": 1,
  "uid": "e|2_4S_4HFn8RDhhmA|w4HFn8RPDFUi_2_4S_S_3___6.2NvyN8Hb67wmzJshM_6BuFTt|ios-apns"
}
<xml>
    <token>abcdefghijklmnqrstuvwxyz</token>
    <events>1</events>
    <uid>e|2_4S_4HFn8RDhhmA|w4HFn8RPDFUi_2_4S_S_3___6.2NvyN8Hb67wmzJshM_6BuFTt|ios-apns</uid>
</xml>
Response example
- JSON
 - XML
 
{
  "error": 0,
  "error_text": "Successful operation"
}
<xml>
    <error>0</error>
    <error_text>Successful operation</error_text>
</xml>
Response parameters
| Parameter | Type | Description | 
|---|---|---|
| error | int | Error code | 
| error_text | string | Error text |