I am using clover APIs for the first time. I want to fetch sales data for items of a particular merchant using merchant ID. Is it possible to call clover Rest APIs from lambda function or is it the case that we can only call clover Rest APIs through a published app in the clover app store?
EDIT: For a normal API call, we need to get the API token from clover server which involves authorizing merchant, specifying the ID of our application (client id) and the secret key of our application. Authorizing merchant results in a redirect to our app.
Now instead of calling clover APIs from our published application, if we want to call clover APIs from a lambda function, how do we get the API token? Because in this case, we do not have an app ID, no app secret key, also no redirect URL to our app which clover server redirects a user after authorizing. In short, is there a way to get API Token in a standalone function like AWS lambda function? Which also comes down to if there is a way to authorize a merchant from a lambda function without redirecting it to the clover login page? (Assuming we have merchants credentials)