I am working to consume Drupal Rest Api using c#. I am using drupal 7.5 and utilising it\'s rest services/api following various resources.
I have been successful with go
I used following to login to drupal
var client = new RestClient("drupalsitename/user/login");
var request = new RestRequest(Method.POST);
request.AddHeader("cache-control", "no-cache");
request.AddHeader("content-type", "application/json");
request.AddHeader("user-agent", "Mozilla/5.0 (Windows NT 10.0; WOW64; rv:48.0) Gecko/20100101 Firefox/48.0");
request.AddParameter("application/json", "{\"name\":\"username\",\n\"pass\":\"password\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
This will provide you with necessary session and token info and then basically you can use those information to make the post, similar to that I have written in the question