The default endpoint to send a single push notification, or a batch of notifications.

Parameters

  • N/A

Response

200

Request Body

{
  "name": "TestApiPush",
  "filters": [{
        "type": "an_version",
        "comparator": ">=",
        "values": ["5.0.0"]
    },
    {
        "type": "ios_version",
        "comparator": "!=",
        "values": ["8.0.1"]
    },
    {
        "type": "custom_data",
        "comparator": ">=",
        "values": [16],
        "dataKey": "dollars spent"
    }],
  "notification": {
    "alert": "Congratulations, you've won a new VCR!"
  },
  "production": false
}

List all Push Notifications

URL

https://api.taplytics.com/v2/push{?api_token}

Headers

application/json; charset=utf-8

Response Body

[{
    "id": "548013f2c703f020242ff21c",
    "filters": [{
        "type": "an_version",
        "comparator": ">=",
        "values": ["5.0.0"]
    },
    {
        "type": "ios_version",
        "comparator": "!=",
        "values": ["8.0.1"]
    },
    {
        "type": "custom_data",
        "comparator": ">=",
        "values": [16],
        "dataKey": "dollars spent"
    }],
    "notification": {
        "alert": "Congratulations, you've won a new VCR!"
    },
    "production": false
}]
Language