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 |
Creates a managed short Dynamic Link given either a valid long Dynamic Link or details such as Dynamic Link domain, Android and iOS app information. The created short Dynamic Link will not expire. This differs from CreateShortDynamicLink in the following ways: - The request will also contain a name for the link (non unique name for the front end). - The response must be authenticated with an auth token (generated with the admin service account). - The link will appear in the FDL list of links in the console front end. The Dynamic Link domain in the request must be owned by requester's Firebase project.
See: Firebase Dynamic Links API Reference for firebasedynamiclinks.managedShortLinks.create
.
Synopsis
- type ManagedShortLinksCreateResource = "v1" :> ("managedShortLinks:create" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateManagedShortLinkRequest :> Post '[JSON] CreateManagedShortLinkResponse))))))))
- managedShortLinksCreate :: CreateManagedShortLinkRequest -> ManagedShortLinksCreate
- data ManagedShortLinksCreate
- mslcXgafv :: Lens' ManagedShortLinksCreate (Maybe Xgafv)
- mslcUploadProtocol :: Lens' ManagedShortLinksCreate (Maybe Text)
- mslcAccessToken :: Lens' ManagedShortLinksCreate (Maybe Text)
- mslcUploadType :: Lens' ManagedShortLinksCreate (Maybe Text)
- mslcPayload :: Lens' ManagedShortLinksCreate CreateManagedShortLinkRequest
- mslcCallback :: Lens' ManagedShortLinksCreate (Maybe Text)
REST Resource
type ManagedShortLinksCreateResource = "v1" :> ("managedShortLinks:create" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateManagedShortLinkRequest :> Post '[JSON] CreateManagedShortLinkResponse)))))))) Source #
A resource alias for firebasedynamiclinks.managedShortLinks.create
method which the
ManagedShortLinksCreate
request conforms to.
Creating a Request
managedShortLinksCreate Source #
Creates a value of ManagedShortLinksCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ManagedShortLinksCreate Source #
Creates a managed short Dynamic Link given either a valid long Dynamic Link or details such as Dynamic Link domain, Android and iOS app information. The created short Dynamic Link will not expire. This differs from CreateShortDynamicLink in the following ways: - The request will also contain a name for the link (non unique name for the front end). - The response must be authenticated with an auth token (generated with the admin service account). - The link will appear in the FDL list of links in the console front end. The Dynamic Link domain in the request must be owned by requester's Firebase project.
See: managedShortLinksCreate
smart constructor.
Instances
Request Lenses
mslcUploadProtocol :: Lens' ManagedShortLinksCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
mslcAccessToken :: Lens' ManagedShortLinksCreate (Maybe Text) Source #
OAuth access token.
mslcUploadType :: Lens' ManagedShortLinksCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
mslcPayload :: Lens' ManagedShortLinksCreate CreateManagedShortLinkRequest Source #
Multipart request metadata.
mslcCallback :: Lens' ManagedShortLinksCreate (Maybe Text) Source #
JSONP