#ShortUrlApi
短地址生成器接口,目前仅实现了网易126.am的短地址生成器接口。
如何使用:
Am126ShortUrlGenerater sug = new Am126ShortUrlGenerater();
//这个apikey需要在126.am网站上申请。
sug.setApiKey("b4df5122444bb4198387f09");
//生成指定参数的短地址
ShortUrlResult sur = sug.generate("http://www.wellbole.com");
//生成成功,打印出结果
if(sur.isOk()){
log.info("shortUrl:" + sur.getShortUrl());
}
Sign in for post a comment
Activity
Community
Health
Trend
Influence
:Code submit frequency
:React/respond to issue & PR etc.
:Well-balanced team members and collaboration
:Recent popularity of project
:Star counts, download counts etc.
Comments ( 0 )