Twitter API 是否会自动缩短 URL [英] Does the Twitter API auto shorten URLs

查看:62
本文介绍了Twitter API 是否会自动缩短 URL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道之前有人问过这个问题,但是我发现的答案有点旧,而且我知道 twitter 最近在所有帖子上都设置了 t.co/xyz 服务. 我只是想知道是否在使用 oAuth API 时服务它会自动缩短任何网址?有谁知道当前的进程是什么?我还需要缩短网址预发布吗?

I know this question has been asked before however the answers I found where a little old and I know that twitter has now made the t.co/xyz service manditory on all posts recently. I'm just wondering if when using the oAuth API service it will automatically shorten any url? Anyone know what the current process in play is? Do I still need to shorten the url pre posting?

非常感谢

推荐答案

是的.即使在使用 OAuth 时,所有链接也将包含在 t.co 短 URL 中.即使链接少于 20 个字符!

Yes. Even when using OAuth, all links will be wrapped in t.co short URLs. Even if the link is shorter than 20 characters!

查看讨论组中的帖子.

还有一些 关于 t.co 缩短最近和即将发生的变化的文档 (2012-04-12).

There is also some documentation about recent and upcoming changes to t.co shortening (2012-04-12).

如果需要,您可以自己缩短网址,但它仍然会被包裹.

You can shorten the URL yourself if you want, but it will still get wrapped.

这篇关于Twitter API 是否会自动缩短 URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆