Contents |
URL
https://api.geoloqi.com/1/message/count_broadcast
Description
Count the number of people that will receive your broadcast messages to all users within a specific region. You can only broadcast messages to users who have opted in to one of your layers.
Also see: message/broadcast.
Supported Request Methods
POST
Parameters
See message/broadcast for a list of parameters
Response
Success
You will get a response that includes the number of messages that will be sent via push notification and SMS, as well as the total number of users.
HTTP/1.1 200 OK { "result":"ok", "total":35, "push":30, "sms":5 }
To actually send the broadcast, repeat the same post input to the message/broadcast method.
Errors
If there was a problem with the request, you will get a response with information about the error. This may look something like the following.
HTTP/1.1 403 Forbidden { "error":"access_denied", "error_description":"Access denied to this layer" }