开发者

tiny URL api Automati in flex 3

开发者 https://www.devze.com 2022-12-22 19:39 出处:网络
i am working in application 开发者_Python百科of twitter in flex 3 and action script 3 , this in the text area when the user write my application automatically change http addressto a short address but

i am working in application 开发者_Python百科of twitter in flex 3 and action script 3 , this in the text area when the user write my application automatically change http address to a short address but i don't know find the address within the text you can help me please..

thanks in advance


if you can use http webservices try to use one provided by bit.ly to shorten url

http://code.google.com/p/bitly-api/wiki/ApiDocumentation#/shorten

http://api.bit.ly/shorten?version=2.0.1&longUrl=' + textarea.text}" result="doSomething(event)"/>


I've never used this api, so research before use: http://userflex.wordpress.com/2008/05/29/tinyurl-flex-library/

It looks like a set of utility functions a simple as: TinyURL.create(url,callbackFunction);

Best of luck, Jeremy

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号