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 |
Updates a message.
See: Hangouts Chat API Reference for chat.spaces.messages.update
.
Synopsis
- type SpacesMessagesUpdateResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Message :> Put '[JSON] Message)))))))))
- spacesMessagesUpdate :: Message -> Text -> SpacesMessagesUpdate
- data SpacesMessagesUpdate
- smuXgafv :: Lens' SpacesMessagesUpdate (Maybe Xgafv)
- smuUploadProtocol :: Lens' SpacesMessagesUpdate (Maybe Text)
- smuUpdateMask :: Lens' SpacesMessagesUpdate (Maybe GFieldMask)
- smuAccessToken :: Lens' SpacesMessagesUpdate (Maybe Text)
- smuUploadType :: Lens' SpacesMessagesUpdate (Maybe Text)
- smuPayload :: Lens' SpacesMessagesUpdate Message
- smuName :: Lens' SpacesMessagesUpdate Text
- smuCallback :: Lens' SpacesMessagesUpdate (Maybe Text)
REST Resource
type SpacesMessagesUpdateResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Message :> Put '[JSON] Message))))))))) Source #
A resource alias for chat.spaces.messages.update
method which the
SpacesMessagesUpdate
request conforms to.
Creating a Request
Creates a value of SpacesMessagesUpdate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SpacesMessagesUpdate Source #
Updates a message.
See: spacesMessagesUpdate
smart constructor.
Instances
Request Lenses
smuUploadProtocol :: Lens' SpacesMessagesUpdate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
smuUpdateMask :: Lens' SpacesMessagesUpdate (Maybe GFieldMask) Source #
Required. The field paths to be updated. Currently supported field paths: "text", "cards".
smuAccessToken :: Lens' SpacesMessagesUpdate (Maybe Text) Source #
OAuth access token.
smuUploadType :: Lens' SpacesMessagesUpdate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
smuPayload :: Lens' SpacesMessagesUpdate Message Source #
Multipart request metadata.
smuName :: Lens' SpacesMessagesUpdate Text Source #
Resource name, in the form "spaces/*/messages/*". Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
smuCallback :: Lens' SpacesMessagesUpdate (Maybe Text) Source #
JSONP