bitly-api-python
bitly-api-python copied to clipboard
pip package not up-to-date?
user_shorten_counts throws an error message:
/home/tpfaff/.local/lib/python2.7/site-packages/bitly_api/bitly_api.pyc in user_shorten_counts(s
elf, **kwargs)
287 data = self._call_oauth2_metrics("v3/user/shorten_counts", dict(),
288 **kwargs)
--> 289 return data["shorten_counts"]
290
291 def user_tracking_domain_list(self):
KeyError: 'shorten_counts'
I know that the correct key user_shorten_counts is in the code in this repo, but if you install via pip there is apparently an older version of bitly_api.py.
This repo seems abandoned by its original creator. I have cloned it and merged in at least some pull requests here: https://github.com/jimmy927/bitly-api-python
At the writing point in time i got it working.