Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
firebase-dynamic-links-generator
Readme
Simple python client to generate Firebase Dynamic Links. It allows to use a custom domain and fields for generate links for android and ios.
pip3 install firebase-dynamic-links-generator
from firebase_dynamic_link_generator import GenerateFirebaseDynamicLink
SERVICE_FILE = 'YOUR_SERVICE_ACCOUNT_JSON_FILE_PATH'
DOMAIN = 'example.page.link' ## need to setup in firebase dynamic link
NAME = "NAME_OF_LINK" ## name of the link
fdl = GenerateFirebaseDynamicLink(DOMAIN, SERVICE_FILE, NAME)
linkinfo_params = {
"androidInfo": {
"androidPackageName": 'PACKAGE_NAME',
"androidFallbackLink": 'FALL_BACK_LINK',
"androidMinPackageVersionCode": '1'
},
}
## for short link
short_link = fdl.generate_dynamic_link('http://google.com', linkinfo_params) #https://example.page.link/h77c
## custom short link
suffix_params = {
"option": "CUSTOM", ## SHORT or UNGUESSABLE
"customSuffix": "CT2213" ## for custom suffix valye
}
short_link = fdl.generate_dynamic_link('http://google.com', linkinfo_params, suffix_params) #https://example.page.link/CT2213
api_key
: Key from firebase consoledomain
: Domain uri prefix created in firebase console - Dynamic Link. For example example.page.link
or your custom domain.linkinfo_params
: Dictionary of optional params. For example:{
"domainUriPrefix": string,
"link": string,
"androidInfo": {
"androidPackageName": string,
"androidFallbackLink": string,
"androidMinPackageVersionCode": string
},
"iosInfo": {
"iosBundleId": string,
"iosFallbackLink": string,
"iosCustomScheme": string,
"iosIpadFallbackLink": string,
"iosIpadBundleId": string,
"iosAppStoreId": string
},
"navigationInfo": {
"enableForcedRedirect": boolean,
},
"analyticsInfo": {
"googlePlayAnalytics": {
"utmSource": string,
"utmMedium": string,
"utmCampaign": string,
"utmTerm": string,
"utmContent": string
},
"itunesConnectAnalytics": {
"at": string,
"ct": string,
"mt": string,
"pt": string
}
},
"socialMetaTagInfo": {
"socialTitle": string,
"socialDescription": string,
"socialImageLink": string
}
}
suffix_params
: Dictionary of optional params. For example:{
"option": "SHORT" or "UNGUESSABLE" or "CUSTOM",
"customSuffix": string,
}
https://firebase.google.com/docs/dynamic-links/rest
https://firebase.google.com/docs/reference/dynamic-links/link-shortener
FAQs
Python client for Firebase Dynamic Links API
We found that firebase-dynamic-links-generator demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.