I am reading the document https://docs.clover.com/build/web-app...
I am trying to understand how a web application could connect without user intervention. The process defined in the document seems to be geared for an employee to login. For example, if I have a web application that is going to display to the public the menu for the restaurant, I do not want the customer who has no access to clover to need to authenticate. I want the server to authenticate and retrieve the menu data.
I would expect something like this:
var client = new RestClient("http://example.com/myapi/oauth/token");
RestRequest request = new RestRequest() { Method = Method.POST };
request.AddHeader("Content-Type", "application/json");
request.AddParameter("grant_type", "client_credentials");
request.AddParameter("client_id", "client-app");
request.AddParameter("client_secret", "secret");
var response = client.Execute(request);
I see this method in the documents: https://www.clover.com/oauth/token
However, it appears to depend on a "code" parameter which is the result of a redirect action from user input.
Am I missing something here about how to make a server to server OAuth call?