gogol-proximitybeacon-0.0.1: Google Proximity Beacon SDK.

Copyright(c) 2015 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.ProximityBeacon.Beacons.Attachments.Create

Contents

Description

Associates the given data with the specified beacon. Attachment data must contain two parts: - A namespaced type. - The actual attachment data itself. The namespaced type consists of two parts, the namespace and the type. The namespace must be one of the values returned by the `namespaces` endpoint, while the type can be a string of any characters except for the forward slash (`/`) up to 100 characters in length. Attachment data can be up to 1024 bytes long.

See: Google Proximity Beacon API Reference for proximitybeacon.beacons.attachments.create.

Synopsis

REST Resource

type BeaconsAttachmentsCreateResource = "v1beta1" :> (Capture "beaconName" Text :> ("attachments" :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` BeaconAttachment :> Post `[JSON]` BeaconAttachment))))))))))) Source

A resource alias for proximitybeacon.beacons.attachments.create method which the BeaconsAttachmentsCreate request conforms to.

Creating a Request

beaconsAttachmentsCreate Source

Creates a value of BeaconsAttachmentsCreate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data BeaconsAttachmentsCreate Source

Associates the given data with the specified beacon. Attachment data must contain two parts: - A namespaced type. - The actual attachment data itself. The namespaced type consists of two parts, the namespace and the type. The namespace must be one of the values returned by the `namespaces` endpoint, while the type can be a string of any characters except for the forward slash (`/`) up to 100 characters in length. Attachment data can be up to 1024 bytes long.

See: beaconsAttachmentsCreate smart constructor.

Request Lenses

bacUploadProtocol :: Lens' BeaconsAttachmentsCreate (Maybe Text) Source

Upload protocol for media (e.g. "raw", "multipart").

bacBeaconName :: Lens' BeaconsAttachmentsCreate Text Source

The beacon on which the attachment should be created. Required.

bacUploadType :: Lens' BeaconsAttachmentsCreate (Maybe Text) Source

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