Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates a message.
See: Hangouts Chat API Reference for chat.spaces.messages.create
.
Synopsis
- type SpacesMessagesCreateResource = "v1" :> (Capture "parent" Text :> ("messages" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "threadKey" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Message :> Post '[JSON] Message))))))))))
- spacesMessagesCreate :: Text -> Message -> SpacesMessagesCreate
- data SpacesMessagesCreate
- smcParent :: Lens' SpacesMessagesCreate Text
- smcXgafv :: Lens' SpacesMessagesCreate (Maybe Xgafv)
- smcUploadProtocol :: Lens' SpacesMessagesCreate (Maybe Text)
- smcAccessToken :: Lens' SpacesMessagesCreate (Maybe Text)
- smcUploadType :: Lens' SpacesMessagesCreate (Maybe Text)
- smcPayload :: Lens' SpacesMessagesCreate Message
- smcCallback :: Lens' SpacesMessagesCreate (Maybe Text)
- smcThreadKey :: Lens' SpacesMessagesCreate (Maybe Text)
REST Resource
type SpacesMessagesCreateResource = "v1" :> (Capture "parent" Text :> ("messages" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "threadKey" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Message :> Post '[JSON] Message)))))))))) Source #
A resource alias for chat.spaces.messages.create
method which the
SpacesMessagesCreate
request conforms to.
Creating a Request
Creates a value of SpacesMessagesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SpacesMessagesCreate Source #
Creates a message.
See: spacesMessagesCreate
smart constructor.
Instances
Request Lenses
smcParent :: Lens' SpacesMessagesCreate Text Source #
Required. Space resource name, in the form "spaces/*". Example: spaces/AAAAMpdlehY
smcUploadProtocol :: Lens' SpacesMessagesCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
smcAccessToken :: Lens' SpacesMessagesCreate (Maybe Text) Source #
OAuth access token.
smcUploadType :: Lens' SpacesMessagesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
smcPayload :: Lens' SpacesMessagesCreate Message Source #
Multipart request metadata.
smcCallback :: Lens' SpacesMessagesCreate (Maybe Text) Source #
JSONP
smcThreadKey :: Lens' SpacesMessagesCreate (Maybe Text) Source #
Opaque thread identifier string that can be specified to group messages into a single thread. If this is the first message with a given thread identifier, a new thread is created. Subsequent messages with the same thread identifier will be posted into the same thread. This relieves bots and webhooks from having to store the Hangouts Chat thread ID of a thread (created earlier by them) to post further updates to it. Has no effect if thread field, corresponding to an existing thread, is set in message.