Click here to Skip to main content
15,891,136 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
**
Hello dear i want to know actually i am working on project C# windows application but i dont know how to get data from web api in c# datagridview or in sqlite..
please help me guide me how can i do this
Thanks

**

What I have tried:

nothing tried because i dont know how to do this please help
Posted
Updated 16-Jan-20 2:09am
Comments
Richard MacCutchan 16-Jan-20 7:33am    
You could try studying the API documentation.

You should type "c# get web api data" in your favourite search engine, and follow the links and examples which it will provide to you.
This is a quick answers forum, it is not meant to provide full tutorials on such large topics.
 
Share this answer
 
WebAPI runs over a standard HTTP connection, so the HttpClient in C# would be a good place to start.

Would't ya know it, but MS Docs actually has sample code on how to do this
Call a Web API From a .NET Client (C#) - ASP.NET 4.x | Microsoft Docs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900