Skip to content

Krishna-Singhal/bitly-api-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BitlyAPI


Installation

pip install bitly-api-python

Documentation

You can read our Documention on https://api.ksprojects.me/docs


Examples

Short Url

from BitlyAPI import shorten_urls

urls = ["https://github.com/Krishna-Singhal", "...", "..."]

response = shorten_url(urls)

# print all shotened urls
for i in response:
    print(i.long_url, i.short_url, i.status_txt)

Parameters

Parameter description
urls List of Long urls

Version

from BitlyAPI import __version__

print(__version__)

Copyright

Copyright (C) 2022 by Krishna-Singhal, < https://github.com/Krishna-Singhal >.

All rights reserved.