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 |
(Re)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).
See: Google Proximity Beacon API Reference for proximitybeacon.beacons.activate
.
- type BeaconsActivateResource = "v1beta1" :> (CaptureMode "beaconName" "activate" Text :> (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 :> Post `[JSON]` Empty)))))))))
- beaconsActivate :: Text -> BeaconsActivate
- data BeaconsActivate
- baXgafv :: Lens' BeaconsActivate (Maybe Text)
- baUploadProtocol :: Lens' BeaconsActivate (Maybe Text)
- baPp :: Lens' BeaconsActivate Bool
- baAccessToken :: Lens' BeaconsActivate (Maybe Text)
- baBeaconName :: Lens' BeaconsActivate Text
- baUploadType :: Lens' BeaconsActivate (Maybe Text)
- baBearerToken :: Lens' BeaconsActivate (Maybe Text)
- baCallback :: Lens' BeaconsActivate (Maybe Text)
REST Resource
type BeaconsActivateResource = "v1beta1" :> (CaptureMode "beaconName" "activate" Text :> (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 :> 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
(Re)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).
See: beaconsActivate
smart constructor.
Request Lenses
baUploadProtocol :: Lens' BeaconsActivate (Maybe Text) Source
Upload protocol for media (e.g. "raw", "multipart").
baPp :: Lens' BeaconsActivate Bool Source
Pretty-print response.
baAccessToken :: Lens' BeaconsActivate (Maybe Text) Source
OAuth access token.
baBeaconName :: Lens' BeaconsActivate Text Source
The beacon to activate. Required.
baUploadType :: Lens' BeaconsActivate (Maybe Text) Source
Legacy upload protocol for media (e.g. "media", "multipart").
baBearerToken :: Lens' BeaconsActivate (Maybe Text) Source
OAuth bearer token.
baCallback :: Lens' BeaconsActivate (Maybe Text) Source
JSONP