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