I have the following code and With this code I would like to get the token from the browser. I already tried to using Process.Start(login) but I don't know how to get the response with the token. Summarizing, I would like to run my desktop application, then the browser open, get the token generated by the user login, and then close, so my application can manipulate the data from Zoho.Is there a way to use this solution or one better solution for it
string scope = "ZohoProjects.projects.READ";
string responseType = "code";
string client_id = "100*****H";
string scrt = "02d1********3";
string state = "testing";
string redirect_uri = "https://www.getpostman.com/oauth2/callback";
string login = $"https://accounts.zoho.com/oauth/v2/auth?scope={scope}&client_id={client_id}&response_type=code&access_type=online&redirect_uri={redirect_uri}&prompt=consent";
RestClient client = new RestClient(login);
RestRequest request = new RestRequest(Method.POST);
var response = client.Execute(request);