Advertisement
doublej42

Untitled

Jan 21st, 2014
478
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.70 KB | None | 0 0
  1. //All methods are documented and have similar names to the ones in the docs with the / removed.
  2. //Before you can use the library you will need to  generate an api key at  https://bitly.com/a/oauth_apps
  3. //in web.config <add key="bitlyAccess_Token" value="YOUR_API_KEY" />
  4. //Example usage:
  5.  public ActionResult Index(int page = 0)
  6.         {
  7.         Bitly Bt = new Bitly();
  8.             var model = new VmAdmin
  9.                 {
  10.                     UserInfo = Bt.UserInfo(),
  11.                     UserHistory = Bt.UserLinkHistory(offset: page*50),
  12.                     page = page
  13.                 };
  14.             return View(model);
  15.         }
  16. //Maybe fields in response will be null as they are used for other calls.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement