Skip to content

Instantly share code, notes, and snippets.

@andrerocker
Created November 7, 2010 18:54
Show Gist options
  • Save andrerocker/666319 to your computer and use it in GitHub Desktop.
Save andrerocker/666319 to your computer and use it in GitHub Desktop.
Exemplo de utilização do BitlyJ - Post Blog
public class BitlyJExample
{
public static void main(String[] args)
{
Bitly bitly = BitlyFactory.newInstance("<seu-login>", "<sua-chave>");
BitlyUrl bUrl = bitly.shorten("http://rosaloves.com/stories/view/13");
URL url = bitly.expandHash("hopetransfusion");
BitlyUrlInfo info = bitly.info("hopetransfusion");
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment