Sunday, 20 September 2009

pbtweet dev 1.5 0071

pbtweet dev 1.5 0071 is uploaded.
http://web.me.com/t_trace/pbtweet.html#develop
  1. Added j.mp shorten URL expand.
  2. Redundant conversation problem from 0070 is fixed.
  3. Working on single status page.
  4. Fixing problem with RT/via with tweets contains quote.
1. j.mp works same with using bit.ly API.
Though it's normal implement, j.mp is able to be expand with using bit.ly API.
pbtweet expand some type of shorten URLs. bit.ly and j.mp is processed with using their native javascript API via JSONP. ff.im is scraped HTML of FriendFeed website with using Yahoo! Pipes. And other URLs are decoded with using search.twitter.com.

In 0071, I've changed some codes with calling bit.ly API into normal way.
pbtweet requires callback object to contain original <a> DOM id from script in order to execute adding long URL process asynchronously, but bit.ly API is not capable to carry particular string in JSONP object. Until 0070, pbtweet send DOM id with shorten URL alias in batch style and getting DOM id from error message, however I know this is not smart way... bit.ly fixed this artefact in changing callback object not to contain invalid alias error at last Friday, and pbtweet dev 0070 can't add longURL to original <a> segment.

I changed my "wrong" way to build unique script objects in each process to send DOM id to function which adding longURL onto original <a> segment.

No comments:

Post a Comment