https://github.com/heykarimoff/py-fdl
Python client for Firebase Dynamic Links
https://github.com/heykarimoff/py-fdl
firebase firebase-dynamic-links python
Last synced: 5 months ago
JSON representation
Python client for Firebase Dynamic Links
- Host: GitHub
- URL: https://github.com/heykarimoff/py-fdl
- Owner: heykarimoff
- License: mit
- Created: 2018-05-04T22:08:28.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-11-11T17:36:50.000Z (over 7 years ago)
- Last Synced: 2025-08-21T04:50:14.783Z (10 months ago)
- Topics: firebase, firebase-dynamic-links, python
- Language: Python
- Homepage:
- Size: 39.1 KB
- Stars: 10
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
[](https://travis-ci.org/heykarimoff/py-fdl)
[](https://saythanks.io/to/heykarimoff)
# py-fdl
Python client for [Firebase Dynamic Links](https://firebase.google.com/docs/dynamic-links/)
## Get started
Get you *Web API Key* from [Firebase console Settings page](https://console.firebase.google.com/project/_/settings/general/).
Reference: [Create Dynamic Links with the REST API](https://firebase.google.com/docs/dynamic-links/rest)
## Usage
```python
from firebase_dynamic_links import dynamic_link_builder
builder = dynamic_link_builder(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
```bash
pip install py-fdl
```