DOWNLOAD STEAM CLIENT API HOW TO
How to execute the attached source code (Please go through this section if you want to practice this article with the attached project)
DOWNLOAD STEAM CLIENT API PDF
Initially, I have sent the PDF format value to the service and got the PDF file in response.I ran the project and tried to download all the books in all formats with the following URLs (your IP may change when you run the code on your system). return .FromResult(httpResponseMessage).
httpResponseMessage.Content = new StreamContent(bookStuff).httpResponseMessage = httpRequestMessage.CreateResponse(HttpStatusCode.OK).public ExecuteAsync( cancellationToken).public eBookResult(MemoryStream data, HttpRequestMessage request, string filename).HttpResponseMessage httpResponseMessage.= new .MediaTypeHeaderValue( "application/octet-stream" ).= new .ContentDispositionHeaderValue( "attachment" ).httpResponseMessage.Content = new StreamContent(dataStream).HttpResponseMessage httpResponseMessage = Request.CreateResponse(HttpStatusCode.OK).public HttpResponseMessage GetBookForHRM(string format).return new eBookResult(dataStream, Request, bookName).var dataStream = new MemoryStream(dataBytes).var dataBytes = File.ReadAllBytes(reqBook).string bookName = "sample." + format.ToLower().string reqBook = format.ToLower() = "pdf" ? bookPath_Pdf : (format.ToLower() = "xls" ? bookPath_xls : (format.ToLower() = "doc" ? bookPath_doc : bookPath_zip)).public IHttpActionResult GetbookFor(string format)."C:\MyWorkSpace\SelfDev\UserAPI\UserAPI\Books\sample.zip"."C:\MyWorkSpace\SelfDev\UserAPI\UserAPI\Books\sample.doc"."C:\MyWorkSpace\SelfDev\UserAPI\UserAPI\Books\sample.xls"."C:\MyWorkSpace\SelfDev\UserAPI\UserAPI\Books\sample.pdf".public class EbookController : ApiController.