I have a code to login, but when I send the correct data the API continues to send the code "Unauthorized".
The code is as follows:
var client = new RestClient("link");
var request = new RestRequest("/v1.5/auth/authenticate", Method.POST);
request.RequestFormat = DataFormat.Json;
string user = "{\"nif\":\"15551\", \"nome\":\"teste\", \"password\":\"teste2\", \"loja\": 17 }";
request.AddParameter("text/json", user, ParameterType.RequestBody);
IRestResponse response = client.Execute(request);