资 源 简 介
PHP class to shrink(encode) / enlarge(decode) a Twitter Tweet ID. It was developed to help with "threading" tweets.
Possible usuage: Shrink a tweet ID for created threaded tweets.
I.E. You want to reply to a tweet that has ID 2431418762,
you would encode it:
$a = $tw->encodeTweetID(2431418762);
Then you would post a tweet that encapsulate the value in $a with ^"s,
so it would look like this: ^2ã+nv~æUGreat idea, you rock!^
Decoding:
$a = $tw->decodeTweetID(2ã+nv~æU);
The value of $a would be 2431418762