Exemplo n.º 1
0
        /// <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();
        }
Exemplo n.º 2
0
        public HttpResponseMessage RemoveSetFromWishlistForUser(WishlistApi newWishlistItems)
        {
            wishlistService.RemoveSetFromWishlistForUser(newWishlistItems.UserId, newWishlistItems.LSetId, newWishlistItems.Number);

            return(Request.CreateResponse(HttpStatusCode.Created, "Item removed from wishlist"));
        }
Exemplo n.º 3
0
        public HttpResponseMessage AddSetsToWishlistForUser(WishlistApi newWishlistItems)
        {
            wishlistService.AddSetToWishlistForUser(newWishlistItems.UserId, newWishlistItems.LSetId, newWishlistItems.Number);

            return(Request.CreateResponse(HttpStatusCode.Created, "Item added to wishlist"));
        }