Page tree
Skip to end of metadata
Go to start of metadata

Description

Adds application push events.

Request URL

Method: POST

https://example.com/api/v1.1/pushes/post_events

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
eventsint1 - delivered
2 - opened
3 -delivered and opened
YesEvents
launch_idint1YesIs sent alongside push from Altcraft to Data payload.
providerstring"android-firebase"YesPush provider
subscription_idstring"subscriptionid"Yessubscription ID
uidstring"uid"YesIs sent alongside push from Altcraft to Data payload.

Request example

{
    "token": "abcdefghijklmnqrstuvwxyz",
    "events": 1,
    "launch_id": "launch_id",
    "provider": "android-firebase",
    "subscription_id": "subscriptionid",
    "uid": "uid"
}

Response example

{
    "error": 0,
    "error_text": "Successful operation"
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
  • No labels