Как мы можем опубликовать x-www-form-urlencoded body, используя RestSharp в C #?
Я пытался использовать AddParameters и предоставил Content-Type как "application / x-www-form-urlencoded", но dintнайти удачу.
request.AddParamter("application/x-www-form-urlencoded","grant_type","password",ParameterType.RequestBody);
request.AddParamter("application/x-www-form-urlencoded","username","username",ParameterType.RequestBody);
request.AddParamter("application/x-www-form-urlencoded","password","password",ParameterType.RequestBody);
request.AddParamter("application/x-www-form-urlencoded","clientId","clientId",ParameterType.RequestBody);
request.AddParamter("application/x-www-form-urlencoded","clientsecret","clientsecret",ParameterType.RequestBody);
Я получаю ошибку unsupported_grant_type.В идеале мы должны создать 201 с соответствующим ответом.