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 |
Returns a message.
See: Hangouts Chat API Reference for chat.spaces.messages.get
.
Synopsis
- type SpacesMessagesGetResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Message)))))))
- spacesMessagesGet :: Text -> SpacesMessagesGet
- data SpacesMessagesGet
- smgXgafv :: Lens' SpacesMessagesGet (Maybe Xgafv)
- smgUploadProtocol :: Lens' SpacesMessagesGet (Maybe Text)
- smgAccessToken :: Lens' SpacesMessagesGet (Maybe Text)
- smgUploadType :: Lens' SpacesMessagesGet (Maybe Text)
- smgName :: Lens' SpacesMessagesGet Text
- smgCallback :: Lens' SpacesMessagesGet (Maybe Text)
REST Resource
type SpacesMessagesGetResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Message))))))) Source #
A resource alias for chat.spaces.messages.get
method which the
SpacesMessagesGet
request conforms to.
Creating a Request
Creates a value of SpacesMessagesGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SpacesMessagesGet Source #
Returns a message.
See: spacesMessagesGet
smart constructor.
Instances
Request Lenses
smgUploadProtocol :: Lens' SpacesMessagesGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
smgAccessToken :: Lens' SpacesMessagesGet (Maybe Text) Source #
OAuth access token.
smgUploadType :: Lens' SpacesMessagesGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
smgName :: Lens' SpacesMessagesGet Text Source #
Required. Resource name of the message to be retrieved, in the form "spaces/*/messages/*". Example: spaces/AAAAMpdlehY/messages/UMxbHmzDlr4.UMxbHmzDlr4
smgCallback :: Lens' SpacesMessagesGet (Maybe Text) Source #
JSONP