Skip to content
This repository has been archived by the owner on Apr 9, 2021. It is now read-only.

Add parameter 'day' to clicks_by_day #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ianozsvald
Copy link
Contributor

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.

added days parameter to clicks_by_day (accepting that this is depracated)
@ianozsvald
Copy link
Contributor Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant