首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > Java > 一个java接口Bit.ly API。

一个java接口Bit.ly API。

  • 资源大小:23.31 kB
  • 上传时间:2021-06-29
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: java 一个 接口

资 源 简 介

A Java interface to the bit.ly and j.mp APIs. Bitlyj 2.0: A DSL for Bitly-powered Url Shortening Services This is probably all most will be interested in: ``` import com.rosaloves.bitlyj.Url; import static com.rosaloves.bitlyj.Bitly.*; Url url = as("bitlyapidemo", "R_0da49e0a9118ff35f52f629d2d71bf07").call(shorten("http://rosaloves.com/stories/view/13")); // url.getShortUrl() -> http://bit.ly/fB05 ``` There"s more, of course :-). Check out QuickStart to see more usage, and Bitlyj2AndTheScalaREPL for even more in an interactive Scala session. 2.0 Noteworthies Concise DSL syntax with obvious semantics == bitly interaction with no boilerplate. Natural error handling with no checked exceptions. If you want to deal with exceptions, catch BitlyException and access the delivered message (yields bitly"

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.183161s