static osapi.jive.corev3.dms
Static class for creating and getting
DirectMessages.Methods
↑
DirectMessage describing the newly created direct message
(dm,options)
POST /dmsRetrieves
DirectMessageDescription
Create a new direct message, and return a DirectMessage representing the new object. You must submit a JSON object that contains the following fields:
{ "content" : { "type" : "text/html", "text" : "{text}" }, "participants" : [ "{participantURI}", ... ] }
where:
{text}- Text of the direct message.{participantURI}- Absolute or partial (/people/####) URI for a Jive person that this message will be sent to.
Takes:
- DirectMessage fields describing the new direct message
Options:
| Name | Type | Required | Description |
|---|---|---|---|
| fields | String | false | Names of the fields to be returned |
Retrieves:
↑
DirectMessage describing the specified direct message
get(options)
GET /dms/{uri}Retrieves
DirectMessageDescription
Return the specified direct message by its URI.
Options:
| Name | Type | Required | Description |
|---|---|---|---|
| uri | String | true | URI of the requested direct message |
| fields | String | false | Names of the fields to be returned |