简体   繁体   中英

How to call web API from windows service with id c#

I'm new in working with api and i want to create windows service to call the some api like
https://jsonplaceholder.typicode.com/todos/ and get the record with id of 1
what is the best way to do that?

My Suggestion is use Http Client Requests and Response. Here is the reference How to call Web API from Http Client How do I make calls to a REST API using C#?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM