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 |
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. Authenticate using an OAuth access token from a signed-in user with **Is owner** or **Can edit** permissions in the Google Developers Console project.
See: Proximity Beacon API Reference for proximitybeacon.beacons.attachments.create
.
Synopsis
- type BeaconsAttachmentsCreateResource = "v1beta1" :> (Capture "beaconName" Text :> ("attachments" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "projectId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BeaconAttachment :> Post '[JSON] BeaconAttachment))))))))))
- beaconsAttachmentsCreate :: Text -> BeaconAttachment -> BeaconsAttachmentsCreate
- data BeaconsAttachmentsCreate
- bacXgafv :: Lens' BeaconsAttachmentsCreate (Maybe Xgafv)
- bacUploadProtocol :: Lens' BeaconsAttachmentsCreate (Maybe Text)
- bacAccessToken :: Lens' BeaconsAttachmentsCreate (Maybe Text)
- bacBeaconName :: Lens' BeaconsAttachmentsCreate Text
- bacUploadType :: Lens' BeaconsAttachmentsCreate (Maybe Text)
- bacPayload :: Lens' BeaconsAttachmentsCreate BeaconAttachment
- bacProjectId :: Lens' BeaconsAttachmentsCreate (Maybe Text)
- bacCallback :: Lens' BeaconsAttachmentsCreate (Maybe Text)
REST Resource
type BeaconsAttachmentsCreateResource = "v1beta1" :> (Capture "beaconName" Text :> ("attachments" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "projectId" 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. Authenticate using an OAuth access token from a signed-in user with **Is owner** or **Can edit** permissions in the Google Developers Console project.
See: beaconsAttachmentsCreate
smart constructor.
Instances
Request Lenses
bacUploadProtocol :: Lens' BeaconsAttachmentsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
bacAccessToken :: Lens' BeaconsAttachmentsCreate (Maybe Text) Source #
OAuth access token.
bacBeaconName :: Lens' BeaconsAttachmentsCreate Text Source #
Beacon on which the attachment should be created. A beacon name has the format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the beacon and N is a code for the beacon's type. Possible values are `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. For Eddystone-EID beacons, you may use either the current EID or the beacon's "stable" UID. Required.
bacUploadType :: Lens' BeaconsAttachmentsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
bacPayload :: Lens' BeaconsAttachmentsCreate BeaconAttachment Source #
Multipart request metadata.
bacProjectId :: Lens' BeaconsAttachmentsCreate (Maybe Text) Source #
The project id of the project the attachment will belong to. If the project id is not specified then the project making the request is used. Optional.
bacCallback :: Lens' BeaconsAttachmentsCreate (Maybe Text) Source #
JSONP