public HttpResponse <OkResponse> CreateItem(ShoppingItemCreate requestModel)
 {
     return(new ApiHttpClient().PostRequest <OkResponse>(ApiUrls.ShoppingList, AppSettings.ShoppingListApiKey, requestModel));
 }
        public HttpResponse <OkResponse> CreateDrink(ShoppingItemCreate shoppingItemCreateRequest)
        {
            var createShoppingItemkUri = ApiUrls.ShoppingItem;

            return(new ApiHttpClient().PostRequest <OkResponse>(createShoppingItemkUri, AppSettings.SecretKey, shoppingItemCreateRequest));
        }
Beispiel #3
0
 public HttpResponse <ShoppingItem> CreateShoppingItem(ShoppingItemCreate requestModel)
 {
     return(new ApiHttpClient().PostRequest <ShoppingItem>(string.Format(ApiUrls.DrinkShoppingPost, requestModel.DrinkId), AppSettings.SecretKey, requestModel));
 }