Is there a way to get the shortened t.co url from the API? I need to shorted a url before posting tweet via API. How should I do this? Is this supported by Twitter API or do I have to use some other url shortener like bit.ly?
相关问题
- Google places autocomplete suggestion without coun
- Karate API Testing - Access variable value across
- How to verify laravel passport api token in node /
- Rails how to handle error and exceptions in model
- Converting byte array output into Blob corrupts fi
相关文章
- 我用scrapy写了一个蛮简单的爬虫怎么封装成一个api啊
- 后端给前端的API接口是怎么用代码写的
- Convert C# Object to Json Object
- Android camera2 API get focus distance in AF mode
- Getting all listing images from an Etsy shop
- is there a callback option with twitter's “fol
- Is there an API to get statictics on Google Play d
- How to search specific user's tracks by tag wi
It isn't possible to shorten links using t.co through any means other than sending status updates or direct messages via Twitter. From the Twitter support site:
So, yes, you'll need to use some other shortening service.
The Twitter API will pretty much shorten any link you post through it as long as it is longer than the “short_url_length” value. To answer your question, no you can't get a t.co shortened url before actually posting the tweet. But if all you need is to know the length of the t.co link, you can get the day's value of “short_url_length” (+1 for https links) from their REST API https://dev.twitter.com/rest/reference/get/help/configuration
Looks like all URLs are now shortened with t.co
See this post on Twitter Developers