/// <summary> /// Creates new instance of Untappd API wrapper. /// </summary> /// <param name="clientId">Public API key.</param> /// <param name="clientSecret">Secret API key.</param> public Untappd(string clientId, string clientSecret) { Config.ClientId = clientId; Config.ClientSecret = clientSecret; Beer = new BeerApi(); Venue = new VenueApi(); Wishlist = new WishlistApi(); ThePub = new ThePubApi(); Brewery = new BreweryApi(); Auth = new AuthApi(); }
public HttpResponseMessage RemoveSetFromWishlistForUser(WishlistApi newWishlistItems) { wishlistService.RemoveSetFromWishlistForUser(newWishlistItems.UserId, newWishlistItems.LSetId, newWishlistItems.Number); return(Request.CreateResponse(HttpStatusCode.Created, "Item removed from wishlist")); }
public HttpResponseMessage AddSetsToWishlistForUser(WishlistApi newWishlistItems) { wishlistService.AddSetToWishlistForUser(newWishlistItems.UserId, newWishlistItems.LSetId, newWishlistItems.Number); return(Request.CreateResponse(HttpStatusCode.Created, "Item added to wishlist")); }