Closed GoogleCodeExporter closed 8 years ago
Note that 19 is the current length of shortened links, but it might get longer
in time.
See https://dev.twitter.com/docs/tco-link-wrapper/faq :
"Will t.co-wrapped links always be the same length?
The maximum length of t.co URLs will change over time. Issue a request daily to
GET help/configuration and examine the fields short_url_length and
short_url_length_https to determine the current maximum length of wrapped URLs.
We do not expect these values to change often.
It's important to note that you won't necessarily know the length of a t.co URL
before posting. Consider the short_url_length field a maximum possible length
for a t.co-wrapped link. When designing a tweet entry box, it's best to
consider all URLs as equalling the maximum possible short_url_length.
"
Original comment by lio...@gmail.com
on 3 Nov 2011 at 2:08
committed changeset 239:7fbd0f820d7d
while I didn't adjust the patch to retrieve the short length from Twitter as
liorus suggests above, I did make it calculate the text based on a value that
Api stores that defaults to 19
Api._shortlink_size
Original comment by bear42
on 3 Dec 2011 at 10:40
Original issue reported on code.google.com by
ceesjan....@gmail.com
on 29 Oct 2011 at 1:36Attachments: