public static void BioTimegetJWT()
{
var client = new RestClient("
http://biotimedxb.com:8085/");
var request = new RestRequest("jwt-api-token-auth", Method.POST);
//1-Add Header
request.AddHeader("Content-Type", "application/json");
request.AddBody("username", "admin");
request.AddBody("password","admin");
var response = client.Execute(request);
if (response.StatusCode == System.Net.HttpStatusCode.OK)
{
string rawResponse = response.Content;
Console.WriteLine(rawResponse);
//this creates the mappping between the outcoming data and the class rootobject
//or Deserialize the Object
//Rootobject result = JsonConvert.DeserializeObject<Rootobject>(rawResponse);
}
}