gogol-chat-0.4.0: Google Hangouts Chat SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Chat.Spaces.Messages.Create

Contents

Description

Creates a message.

See: Hangouts Chat API Reference for chat.spaces.messages.create.

Synopsis

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

spacesMessagesCreate Source #

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
Eq SpacesMessagesCreate Source # 
Instance details

Defined in Network.Google.Resource.Chat.Spaces.Messages.Create

Data SpacesMessagesCreate Source # 
Instance details

Defined in Network.Google.Resource.Chat.Spaces.Messages.Create

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SpacesMessagesCreate -> c SpacesMessagesCreate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SpacesMessagesCreate #

toConstr :: SpacesMessagesCreate -> Constr #

dataTypeOf :: SpacesMessagesCreate -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SpacesMessagesCreate) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SpacesMessagesCreate) #

gmapT :: (forall b. Data b => b -> b) -> SpacesMessagesCreate -> SpacesMessagesCreate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SpacesMessagesCreate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SpacesMessagesCreate -> r #

gmapQ :: (forall d. Data d => d -> u) -> SpacesMessagesCreate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SpacesMessagesCreate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SpacesMessagesCreate -> m SpacesMessagesCreate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SpacesMessagesCreate -> m SpacesMessagesCreate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SpacesMessagesCreate -> m SpacesMessagesCreate #

Show SpacesMessagesCreate Source # 
Instance details

Defined in Network.Google.Resource.Chat.Spaces.Messages.Create

Generic SpacesMessagesCreate Source # 
Instance details

Defined in Network.Google.Resource.Chat.Spaces.Messages.Create

Associated Types

type Rep SpacesMessagesCreate :: Type -> Type #

GoogleRequest SpacesMessagesCreate Source # 
Instance details

Defined in Network.Google.Resource.Chat.Spaces.Messages.Create

Associated Types

type Rs SpacesMessagesCreate :: Type #

type Scopes SpacesMessagesCreate :: [Symbol] #

type Rep SpacesMessagesCreate Source # 
Instance details

Defined in Network.Google.Resource.Chat.Spaces.Messages.Create

type Rep SpacesMessagesCreate = D1 (MetaData "SpacesMessagesCreate" "Network.Google.Resource.Chat.Spaces.Messages.Create" "gogol-chat-0.4.0-Hx9iuEakGYJtTWKZeZRZC" False) (C1 (MetaCons "SpacesMessagesCreate'" PrefixI True) (((S1 (MetaSel (Just "_smcParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_smcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv))) :*: (S1 (MetaSel (Just "_smcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_smcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_smcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_smcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Message)) :*: (S1 (MetaSel (Just "_smcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_smcThreadKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes SpacesMessagesCreate Source # 
Instance details

Defined in Network.Google.Resource.Chat.Spaces.Messages.Create

type Rs SpacesMessagesCreate Source # 
Instance details

Defined in Network.Google.Resource.Chat.Spaces.Messages.Create

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").

smcUploadType :: Lens' SpacesMessagesCreate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

smcPayload :: Lens' SpacesMessagesCreate Message Source #

Multipart request metadata.

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.