Important
Apps are only allowed to create a special kind of update with type app_update
.
POST https://api.speakap.io/networks/:eid/messages/
Request
URI: | /networks/{networkEID}/messages/ |
---|---|
Method: | POST |
Content-Type: | application/json |
Authentication: | OAuth 2.0 |
Name | Type | Description |
---|---|---|
networkEID | EID | Network EID |
Supply a complete message resource in the request body possibly supplemented
with a recipient
or parent
object. You should omit created
date as it will be set
server-side. The author relation will be automatically set to the logged in user.
Name | Type | Description |
---|---|---|
recipient | object | Message recipient |
recipient EID | EID | Unique entity identifier |
recipient type | string | Recipient type ('network' , 'group' , 'user' or
'conversation' ) |
parent | object | Parent message in case of a comment |
parent EID | EID | Unique entity identifier |
parent type | string | Message type |
Sending an update as an Application client:
{
"messageType": "app_update",
"localizableBody": {
"en-US" : "I would like to buy a hamburger.",
"fr-FR" : "Je voudrais acheter un hamburger.",
"nl-NL" : "Ik wil graag een hamburger kopen."
},
"recipient": {
"EID": "1234567890ABCDEF",
"type": "network"
}
}
Response