bitdata

An API for bitly's data apis


License
Apache-2.0
Install
pip install bitdata==1.0

Documentation

Installation

From pip

pip install bitdata

From source distribution

git clone https://github.com/wesmadrigal/bitdata.git
python setup.py install

Usage

The BitlyData class exposes all of the Data API endpoints available to bit.ly developers. They are named the same way, as well. For example, the "hot_phrases" endpoint that bit.ly exposes is similarly named hot_phrases as an instance method of the DatBit object.

One thing you will have to do is sign up with bit.ly as a developer and get an access token, as the BitData class's __init__ method takes one as a required parameter on instantiation.

Go get your access token here

from bitdata.bitdata import BitData
bitly = BitData("tokenyouretrieved")
hot_phrases = bitly.hot_phrases()