This is a Python Client for Firebase Dynamic Links to Shorten URLs.
Be sure you have the following installed on your development machine:
- Python >= 3.6
- pip
Install the package:
pip install python-firebase-url-shortener
from python_firebase_url_shortener.url_shortener import UrlShortener
url_shortener = UrlShortener('your_api_key', 'domain_name')
url_shortener.get_short_link('https://www.example.com/')
Here Domain Name Refers to The Subdomain you set for your Dynamic Links.