send
send
Sends a broadcast from a user to users. If a group id is passed in, the broadcast goes to all memebers of the group. If no group id is provided, the broadcast goes to all of the user’s friends.
Parameters
| Name | Description |
| sender optional | The user ID of the new broadcast sender. |
| nodeID optional | The node ID of the new broadcast sender. |
| body optional | The body text of the new broadcast message. |
| title optional | The title text of the new broadcast message. |
| groupID optional | The group ID if this broadcast is a group broadcast. |
| output optional | The response output format. Accepts JSON and XML. |
Request Syntax
| https://services.onesite.com/rest/ugcBroadcast?action=send&sender=229928503&title=Testing&body=Hey%2C+how%27s+it+going%3F&nodeID=188234&groupID=1000811&devkey=[devkey] |
JSON Response
|
1 2 3 4 5 6 |
{ "service":"ugcBroadcast", "action":"send", "code":1, "message":"The broadcast has been sent successfully." } |
Service Information
| Service | ugcBroadcast |
| Method | send |
| Type | REST |
| Response Types | JSON, XML |