Python client for Firebase Dynamic Links
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
firebase_dynamic_links
tests
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
requirements.txt
setup.cfg
setup.py

README.md

Build Status Say Thanks!

py-fdl

Python client for Firebase Dynamic Links

Get started

Get you Web API Key from Firebase console Settings page. Reference: Create Dynamic Links with the REST API

Usage

from firebase_dynamic_links import dynamic_link_builder

builder = dynamic_link_builder(api_key='<Web API Key>')
options = {
    'link': 'https://www.karimoff.me',
    'apn': 'com.example.android', 
    'ibi': 'com.example.ios'
}

long_link = builder.generate_long_link(app_code='karimoff', **options)

# long_link
# 'https://karimoff.page.link/?link=https%3A%2F%2Fwww.karimoff.me&apn=com.example.android&ibi=com.example.ios'


short_link = builder.generate_short_link(app_code='karimoff', **options)

# short_link
# 'https://karimoff.page.link/ZhtUPPWJXLT9PKXg6'

Install

pip install py-fdl