开发者

PHP - And bulk retrieval of API stats

开发者 https://www.devze.com 2023-01-29 04:07 出处:网络
I\'ve been looking around for the开发者_JAVA技巧 best way to retrieve stats from systems like bit.ly where you have a lot of URLs and I want to keep my system updated once an hour or so.

I've been looking around for the开发者_JAVA技巧 best way to retrieve stats from systems like bit.ly where you have a lot of URLs and I want to keep my system updated once an hour or so.

What's the best approach on PHP? A simple php CRON job that run through the list 15 at a time (or whatever the api limit is at the other end)? Or an php extension? Seems like it could be a big hit once the number of records gets large.

Anyone got any tips or examples on this? I have a solution in my head, but I'm intrigued as to how other's approach it as it doesn't seem to be an overly talked about topic.

Thanks in advance


Bit.ly does give you 15 results at once, so yeah, you can setup a cron job, to run 24/7 this way it'll balance out the busy times during the day with slow times at night.

Here's the direct link to the documentation for the clicks:

http://code.google.com/p/bitly-api/wiki/ApiDocumentation#/v3/clicks


Maybe you should try this one https://github.com/TareqBajjlay/Dev its not OOP, it was a single page, i believe this should help.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号