rekbun / bitlyj

Automatically exported from code.google.com/p/bitlyj
0 stars 0 forks source link

Version 3 Sample adjustments #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have roughly adjusted the API to work with bit.ly v3 API. I have it 
working. Hope someone can integrate it into new version of bitlyj.

HOWTO USE:

public static String getBitlyProLink(String urlString) {
        String rtn = urlString;
        try {
            rtn = BitlyAPIv3Sample.callBitly(urlString);
        } catch (Exception e) {
            //log.error("Bitly trouble: ", e);
        }
        return rtn;
}

See attached file for source.

Original issue reported on code.google.com by ban...@gmail.com on 18 May 2010 at 9:02

Attachments:

GoogleCodeExporter commented 9 years ago
Hi, this works well so thanks as I also could not get the standard example to 
work but this did. Might be worth putting this more prominently on the site as 
it took me a bit to find your solution.

Scott.

Original comment by ScottJBa...@gmail.com on 2 Jul 2010 at 12:51

GoogleCodeExporter commented 9 years ago
Hi Bankim. Thanks for contributing, but I won't be making a fix to the 1.x 
branch. The reason for that is simple: bitlyj's api basically has a 1 to 1 
mapping of java methods to bitly methods. In hindsight, this was a poor design 
choice on my part, and the differences in what's available in bitly's v3 vs v2 
should make that clear. I've committed a fair portion of work on bitly2 2.0 to 
trunk today. For any new feature requests, please state the request clearly and 
against bitlyj 2.0, as 1.0 is deprecated.

Original comment by ch...@rosaloves.com on 17 Jul 2010 at 10:31