bitly / bitly-api-python

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

Efficient Way for Aggregate Call? #21

Closed woozyking closed 5 years ago

woozyking commented 11 years ago

Hi,

I went through the developer documentation, realized that there's no direct endpoints that provides aggregated information.

So I went ahead and used ThreadPool with a concurrency of 5 to try to improve sequential calls of all 11 endpoints I needed.

Here's the gist, let me know if there's any way to do it from the client side that could improve it!

https://gist.github.com/woozyking/4ad49ded84effdce6ef3

Or, please point me to the right documentation where there are aggregated endpoints :)

jimmy927 commented 5 years ago

Is maybe this what you are looking for ?

https://github.com/jimmy927/bitly-api-python/pull/2

woozyking commented 5 years ago

Thanks @jimmy927

It's been too long and I have no use for this client anymore.

Just glimpsed through the PR code change and realized that it's about v3/bundle API resource, and compared with my gist from back then, I would say it's not what I'm looking for. But I can't be sure and it's not that important any longer.