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 |
Activates a beacon. A beacon that is active will return information and attachment data when queried via `beaconinfo.getforobserved`. Calling this method on an already active beacon will do nothing (but will return a successful response code). 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.activate
.
Synopsis
- type BeaconsActivateResource = "v1beta1" :> (CaptureMode "beaconName" "activate" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "projectId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] Empty))))))))
- beaconsActivate :: Text -> BeaconsActivate
- data BeaconsActivate
- baXgafv :: Lens' BeaconsActivate (Maybe Xgafv)
- baUploadProtocol :: Lens' BeaconsActivate (Maybe Text)
- baAccessToken :: Lens' BeaconsActivate (Maybe Text)
- baBeaconName :: Lens' BeaconsActivate Text
- baUploadType :: Lens' BeaconsActivate (Maybe Text)
- baProjectId :: Lens' BeaconsActivate (Maybe Text)
- baCallback :: Lens' BeaconsActivate (Maybe Text)
REST Resource
type BeaconsActivateResource = "v1beta1" :> (CaptureMode "beaconName" "activate" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "projectId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] Empty)))))))) Source #
A resource alias for proximitybeacon.beacons.activate
method which the
BeaconsActivate
request conforms to.
Creating a Request
Creates a value of BeaconsActivate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BeaconsActivate Source #
Activates a beacon. A beacon that is active will return information and attachment data when queried via `beaconinfo.getforobserved`. Calling this method on an already active beacon will do nothing (but will return a successful response code). 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: beaconsActivate
smart constructor.
Instances
Request Lenses
baUploadProtocol :: Lens' BeaconsActivate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
baAccessToken :: Lens' BeaconsActivate (Maybe Text) Source #
OAuth access token.
baBeaconName :: Lens' BeaconsActivate Text Source #
Beacon that should be activated. 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.
baUploadType :: Lens' BeaconsActivate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
baProjectId :: Lens' BeaconsActivate (Maybe Text) Source #
The project id of the beacon to activate. If the project id is not specified then the project making the request is used. The project id must match the project that owns the beacon. Optional.
baCallback :: Lens' BeaconsActivate (Maybe Text) Source #
JSONP