bitly / bitly-api-python

python library to the bitly api
http://github.com/bitly/bitly-api-python
Other
245 stars 92 forks source link

Add parameter 'day' to clicks_by_day #14

Open ianozsvald opened 11 years ago

ianozsvald commented 11 years ago

The clicks_by_day parameter is deprecated but still works and it returns a historic list of clicks per day (unlike, as best I can tell, v3/link/clicks). clicks_by_day accepts a 'days' parameter but this wasn't available in the Python bindings, I've added the option along with 2 new tests.

I've also checked in some pep8 pedantry.

ianozsvald commented 11 years ago

Since this pull request is untouched I'll provide a simple example to monkey-patch the bitly_api with the updated clicks_by_day method: https://github.com/adaptivelab/bitly-historics/blob/master/bitly_api_extended.py