question

Prasad avatar image
Prasad asked Miguel Deactivated edited

How To Generate Authorization Code Purely with Apis?

Hi ,I actually Tried as per the Documentation Steps and Generated AuthCode Successfully which helped to Process Credit Card.

But Is there any way to Get the auth code without Clicking Example Auth Code hyperLink from App ? Inline image 1When i used the api's they are generating HTML results but not JSON response .example :- https://sandbox.dev.clover.com/oauth/authorize?client_id={App ID}
2) How Much time the Generated Token Will be valid ?

3) When ever we have to generate Auth Code We need to go ahead and Click on Example Auth request Button ?

Could any one please Suggest me any other endpoints which generates JSON results or the Best Way to get it done with appID and Secret without developing Android app
OAuth
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

chanel avatar image
chanel Deactivated answered
We suggest using OAuth2.0. Information on this can be found here: https://docs.clover.com/build/oauth-2-0/ And here is a Python example to help you out: https://github.com/cloverhackathons/OAuthPython . Once you have the generated token, it should be valid until the merchant uninstalls your app.

The API should be returning JSON results. If you have any issues beyond what I've provided, please reach out again!
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community