/// <summary> /// Begin a new AmazonBuyGoodsRequest /// </summary> /// <param name="requestData"></param> /// <returns></returns> public GameSparksStoreExternalResponse AmazonBuyGoodsRequest(AmazonBuyGoodsRequest requestData) { return(JsonConvert.DeserializeObject <GameSparksStoreExternalResponse>(Requestor.PostString(Urls.AmazonBuyGoodsRequest, JsonHelper.SerializeData(requestData)).ResponseJson)); }
/// <summary> /// Begin a new asynchronous AmazonBuyGoodsRequest /// </summary> /// <param name="requestData"></param> /// <returns></returns> public async Task <GameSparksStoreExternalResponse> AmazonBuyGoodsRequestAsync(AmazonBuyGoodsRequest requestData) { var res = await Requestor.PostStringAsync(Urls.AmazonBuyGoodsRequest, JsonHelper.SerializeData(requestData)); return(JsonConvert.DeserializeObject <GameSparksStoreExternalResponse>(res.ResponseJson)); }