Search…
⌃K

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.
post
http://server-v1.2mee.com/filter/add
Audience filter create
$ curl 'http://server-v1.2mee.com/filter/add' -i -X POST -H 'Content-Type: application/json' -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTU3OTYyMjQ1NiwiaWF0IjoxNTc5NjA0NDU2fQ.vogap4Na2O8-z4lLowb8zMdyAWsp2iajr_XwIsYAHEDodzejcYgp2m2yF874xjk67OhkScWGXeIp7gongfhKtQ' -d '{
"appId" : "bacb37d0-a51f-491b-bd68-489c245b8c16",
"name" : "UK Users",
"query" : "[[{\"name\":\"Country\",\"printName\":\"Country\",\"icon\":\"globe\",\"key\":\"\",\"operations\":\"is\",\"options\":\"UK\"}]]"
}'
post
http://server-v1.2mee.com/filter/{appId}/csv
Audience CSV upload
$ curl 'http://server-v1.2mee.com/filter/bacb37d0-a51f-491b-bd68-489c245b8c16/csv'
-i -X POST -H 'Content-Type: multipart/form-data' -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTU3OTYyMjQ1NiwiaWF0IjoxNTc5NjA0NDU2fQ.vogap4Na2O8-z4lLowb8zMdyAWsp2iajr_XwIsYAHEDodzejcYgp2m2yF874xjk67OhkScWGXeIp7gongfhKtQ' -F '[email protected];type=multipart/form-data'
$ curl 'http://server-v1.2mee.com/filter/find?filter_id=7fa82a9c-e12a-47bc-b980-0cd916c7060e'
-i -H 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0aW5ndGVhbUAybWVlLmNvbSIsImV4cCI6MTU4OTQ1NTc0OSwiaWF0IjoxNTg5NDM3NzQ5fQ.U2VtugGzqD0s9p0rUXaTxk8F5tHeMf5SB4ZRnYM8TV4QQm6y2FvdFIfD6kjQOhcYuPglSusAjVegzHqDKGgCqA'
Last modified 4mo ago