public class MessagePostEndpoint extends AbstractWWGraphQLEndpoint
Constructor and Description |
---|
MessagePostEndpoint(IWWClient client) |
Modifier and Type | Method and Description |
---|---|
MessageResponse |
postMessage(AppMessage message,
String spaceId)
Posts the passed message to the passed Space
|
executeRequest, getAliasedChildren, getClient, getProfileDump, getRequest, getResultContainer, getResultContent, parseResultContainer, setProfileDump, setRequest, setResultContainer, setResultContent
public MessagePostEndpoint(IWWClient client)
client
- WWClient containing authentication details and tokenpublic MessageResponse postMessage(AppMessage message, String spaceId) throws WWException
message
- AppMessage message to postspaceId
- String id of the space to post toWWException
- containing an error message, if the request was unsuccessfulCopyright © 2018 OpenNTF. All rights reserved.