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 |
Returns the attachments for the specified beacon that match the specified namespaced-type pattern. To control which namespaced types are returned, you add the `namespacedType` query parameter to the request. You must either use `*/*`, to return all attachments, or the namespace must be one of the ones returned from the `namespaces` endpoint.
See: Google Proximity Beacon API Reference for proximitybeacon.beacons.attachments.list
.
- type BeaconsAttachmentsListResource = "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 "namespacedType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get `[JSON]` ListBeaconAttachmentsResponse)))))))))))
- beaconsAttachmentsList :: Text -> BeaconsAttachmentsList
- data BeaconsAttachmentsList
- balXgafv :: Lens' BeaconsAttachmentsList (Maybe Text)
- balUploadProtocol :: Lens' BeaconsAttachmentsList (Maybe Text)
- balPp :: Lens' BeaconsAttachmentsList Bool
- balAccessToken :: Lens' BeaconsAttachmentsList (Maybe Text)
- balBeaconName :: Lens' BeaconsAttachmentsList Text
- balUploadType :: Lens' BeaconsAttachmentsList (Maybe Text)
- balBearerToken :: Lens' BeaconsAttachmentsList (Maybe Text)
- balNamespacedType :: Lens' BeaconsAttachmentsList (Maybe Text)
- balCallback :: Lens' BeaconsAttachmentsList (Maybe Text)
REST Resource
type BeaconsAttachmentsListResource = "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 "namespacedType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get `[JSON]` ListBeaconAttachmentsResponse))))))))))) Source
A resource alias for proximitybeacon.beacons.attachments.list
method which the
BeaconsAttachmentsList
request conforms to.
Creating a Request
Creates a value of BeaconsAttachmentsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BeaconsAttachmentsList Source
Returns the attachments for the specified beacon that match the specified namespaced-type pattern. To control which namespaced types are returned, you add the `namespacedType` query parameter to the request. You must either use `*/*`, to return all attachments, or the namespace must be one of the ones returned from the `namespaces` endpoint.
See: beaconsAttachmentsList
smart constructor.
Request Lenses
balUploadProtocol :: Lens' BeaconsAttachmentsList (Maybe Text) Source
Upload protocol for media (e.g. "raw", "multipart").
balPp :: Lens' BeaconsAttachmentsList Bool Source
Pretty-print response.
balAccessToken :: Lens' BeaconsAttachmentsList (Maybe Text) Source
OAuth access token.
balBeaconName :: Lens' BeaconsAttachmentsList Text Source
The beacon whose attachments are to be fetched. Required.
balUploadType :: Lens' BeaconsAttachmentsList (Maybe Text) Source
Legacy upload protocol for media (e.g. "media", "multipart").
balBearerToken :: Lens' BeaconsAttachmentsList (Maybe Text) Source
OAuth bearer token.
balNamespacedType :: Lens' BeaconsAttachmentsList (Maybe Text) Source
Specifies the namespace and type of attachment to include in response in namespace/type format. Accepts `*/*` to specify "all types in all namespaces".
balCallback :: Lens' BeaconsAttachmentsList (Maybe Text) Source
JSONP