Audience
The users of your application whom you want to address.
There are several ways to narrow down on application users whom you want to send a notification. One way is to create a query that filters the users. The other alternative is to upload the user listing as a CSV file.
Audience filter create
POST
https://exchange-prod-g.2mee.com/filter/add
Creating a new Audience segment to deliver the notification. Filters can be chosen from the filter/wrapper API.
Request Body
Name | Type | Description |
---|---|---|
appId | string | Application Id for which the audience segment has to be created. (Prerequisite) |
name | string | Name for the Audience |
query | string | Audience query, it refers to the filter that narrows down on the application users as per your requirement . An example query: [[{"name":"Country","printName":"Country","icon": "globe","key":"","operations":"is","options":"UK"}]] |
Audience CSV upload
POST
https://exchange-prod-g.2mee.com/filter/{appId}/csv
An alternative way of creating an audience is to upload CSV File containing names of the users.
Path Parameters
Name | Type | Description |
---|---|---|
appId | string | Application Id for which the CSV has to be uploaded. can be picked from app/list API. |
Request Body
Name | Type | Description |
---|---|---|
csv | object | CSV File containing Audience names |
Audience filter search
GET
http://server-v1.2mee.com/filter/find
Returns details about the filter query as created using Audience Filter Create API.
Path Parameters
Name | Type | Description |
---|---|---|
filter_id | string | Audience segment picked for the delivery of the Message. |
Last updated