Skip to main content

Python client for Firebase Dynamic Links

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py-fdl-1.1.2.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

py_fdl-1.1.2-py2.py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page