I need to implement a post
request in a c#
winform
application of my project. Earlier to that I just have implemented get
requests. I have checked that the API URI is working well (I checked it using Postman). I never implemented POST requests in the past. The get
requests I implement using the following code:
WebClient n = new WebClient();
string uri = "API_URI";
string json = n.DownloadString(uri);
Now my requirement is to download json
string using post
method with an "apikey" with its value which I need to provide while calling the URI.
When I am using the above code, it is searching the "API_URI" in my local application directory.
Any direction, sample code and or tutorial will be much appreciated. Please help me with that.