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 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. Repeated calls with the same long Dynamic Link or Dynamic Link information will produce the same short Dynamic Link. The Dynamic Link domain in the request must be owned by requester's Firebase project.
See: Firebase Dynamic Links API Reference for firebasedynamiclinks.shortLinks.create
.
Synopsis
- type ShortLinksCreateResource = "v1" :> ("shortLinks" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateShortDynamicLinkRequest :> Post '[JSON] CreateShortDynamicLinkResponse))))))))
- shortLinksCreate :: CreateShortDynamicLinkRequest -> ShortLinksCreate
- data ShortLinksCreate
- slcXgafv :: Lens' ShortLinksCreate (Maybe Xgafv)
- slcUploadProtocol :: Lens' ShortLinksCreate (Maybe Text)
- slcAccessToken :: Lens' ShortLinksCreate (Maybe Text)
- slcUploadType :: Lens' ShortLinksCreate (Maybe Text)
- slcPayload :: Lens' ShortLinksCreate CreateShortDynamicLinkRequest
- slcCallback :: Lens' ShortLinksCreate (Maybe Text)
REST Resource
type ShortLinksCreateResource = "v1" :> ("shortLinks" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateShortDynamicLinkRequest :> Post '[JSON] CreateShortDynamicLinkResponse)))))))) Source #
A resource alias for firebasedynamiclinks.shortLinks.create
method which the
ShortLinksCreate
request conforms to.
Creating a Request
Creates a value of ShortLinksCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ShortLinksCreate Source #
Creates a 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. Repeated calls with the same long Dynamic Link or Dynamic Link information will produce the same short Dynamic Link. The Dynamic Link domain in the request must be owned by requester's Firebase project.
See: shortLinksCreate
smart constructor.
Instances
Request Lenses
slcUploadProtocol :: Lens' ShortLinksCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
slcAccessToken :: Lens' ShortLinksCreate (Maybe Text) Source #
OAuth access token.
slcUploadType :: Lens' ShortLinksCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
slcPayload :: Lens' ShortLinksCreate CreateShortDynamicLinkRequest Source #
Multipart request metadata.
slcCallback :: Lens' ShortLinksCreate (Maybe Text) Source #
JSONP