messageUser
- Home
- Users & Groups
- SvcUsers
- messageUser
messageUser
Used to send a message to one or more users. Mulitiple users can be messaged by submitting a comma delimited list of user ids.
Parameters
| Name | Description |
| userID required | User id of the user who is being targeted. |
| senderID required | The person who is the sender of a message to a user. |
| nodeID required | Node_id for the network upon which to operate. |
| messageSubject required | The subject of a message to be sent to a user. |
| messageBody required | The body of the message to be sent to a user. |
| output optional | The response output format. Accepts JSON and XML. |
Request Syntax
| https://services.onesite.com/rest/svcUsers?action=messageUser&userID=229751571&senderID=229928503&nodeID=188234&messageSubject=TESTING!&messageBody=Test&devkey=[devkey] |
JSON Response
|
1 2 3 4 5 6 |
{ "service":"svcUsers", "action":"messageUser", "code":1, "message":"success" } |
Service Information
| Service | svcUsers |
| Method | messageUser |
| Type | REST |
| Response Types | JSON, XML |