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