I want to make a POST request to a URL like this:
http://localhost/resource?auth_token=1234
And I want to send JSON in the body. My code looks something like this:
var client = new RestClient("http://localhost");
var request = new RestRequest("resource", Method.POST);
request.AddParameter("auth_token", "1234");
request.AddBody(json);
var response = client.Execute(request);
How can I set the auth_token
parameter to be a GET parameter and make the request as POST?