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 |
Deletes a message.
See: Hangouts Chat API Reference for chat.spaces.messages.delete
.
Synopsis
- type SpacesMessagesDeleteResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty)))))))
- spacesMessagesDelete :: Text -> SpacesMessagesDelete
- data SpacesMessagesDelete
- smdXgafv :: Lens' SpacesMessagesDelete (Maybe Xgafv)
- smdUploadProtocol :: Lens' SpacesMessagesDelete (Maybe Text)
- smdAccessToken :: Lens' SpacesMessagesDelete (Maybe Text)
- smdUploadType :: Lens' SpacesMessagesDelete (Maybe Text)
- smdName :: Lens' SpacesMessagesDelete Text
- smdCallback :: Lens' SpacesMessagesDelete (Maybe Text)
REST Resource
type SpacesMessagesDeleteResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty))))))) Source #
A resource alias for chat.spaces.messages.delete
method which the
SpacesMessagesDelete
request conforms to.
Creating a Request
Creates a value of SpacesMessagesDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SpacesMessagesDelete Source #
Deletes a message.
See: spacesMessagesDelete
smart constructor.
Instances
Request Lenses
smdUploadProtocol :: Lens' SpacesMessagesDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
smdAccessToken :: Lens' SpacesMessagesDelete (Maybe Text) Source #
OAuth access token.
smdUploadType :: Lens' SpacesMessagesDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
smdName :: Lens' SpacesMessagesDelete Text Source #
Required. Resource name of the message to be deleted, in the form "spaces/*/messages/*" Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
smdCallback :: Lens' SpacesMessagesDelete (Maybe Text) Source #
JSONP