Copyright | (c) 2015 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 |
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
.
- 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)))))))))))
- beaconsAttachmentsCreate :: Text -> BeaconAttachment -> BeaconsAttachmentsCreate
- data BeaconsAttachmentsCreate
- bacXgafv :: Lens' BeaconsAttachmentsCreate (Maybe Text)
- bacUploadProtocol :: Lens' BeaconsAttachmentsCreate (Maybe Text)
- bacPp :: Lens' BeaconsAttachmentsCreate Bool
- bacAccessToken :: Lens' BeaconsAttachmentsCreate (Maybe Text)
- bacBeaconName :: Lens' BeaconsAttachmentsCreate Text
- bacUploadType :: Lens' BeaconsAttachmentsCreate (Maybe Text)
- bacPayload :: Lens' BeaconsAttachmentsCreate BeaconAttachment
- bacBearerToken :: Lens' BeaconsAttachmentsCreate (Maybe Text)
- bacCallback :: Lens' BeaconsAttachmentsCreate (Maybe Text)
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").
bacPp :: Lens' BeaconsAttachmentsCreate Bool Source
Pretty-print response.
bacAccessToken :: Lens' BeaconsAttachmentsCreate (Maybe Text) Source
OAuth access token.
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").
bacPayload :: Lens' BeaconsAttachmentsCreate BeaconAttachment Source
Multipart request metadata.
bacBearerToken :: Lens' BeaconsAttachmentsCreate (Maybe Text) Source
OAuth bearer token.
bacCallback :: Lens' BeaconsAttachmentsCreate (Maybe Text) Source
JSONP