Bit.ly API:列出用户的所有链接
有没有办法可以通过 API 获取 bit.ly 中用户的所有链接?
我需要根据点击次数列出用户的前 10 个链接,但我在 API 文档中找不到方法。
预先非常感谢
Is there a way I can get all the links for a user in bit.ly trought the API?
I need to list top 10 links for a user, based on clicks, but I can't find a way in the API-Documentation.
Thanks a lot in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以要求您的用户公开他们的链接(bitly.com - 设置 - 公开 bitly.com 历史记录),然后您可以在他们的 rss feed 上访问他们的链接
http://bitly.com/u/{ username}.rss
它不是通过 API,但足够接近。
You can ask your users to make their links public (bitly.com - settings - Make bitly.com History Public) after that you can access their links on their rss feed at
http://bitly.com/u/{username}.rss
It's not through the API, but close enough.
使用 popular_links,您可以获得前 1000 个最受欢迎的链接,并从中选取前 10 个。
Using popular_links you can get their top 1000 most popular, and take the top 10 from there.