question

drew-clover avatar image
drew-clover asked chanel Deactivated edited

Clover Tokens and java sdk

Hi, Im building a clovers java sdk for connecting to inventory/orders ect. Do i need to provide some kind of token? Like i would if using the API
Cheers
Clover Android SDK
10 |2000

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

chanel avatar image
chanel Deactivated answered chanel Deactivated edited
Apps that run directly on a Clover device using our SDK do not require a separate access token. By signing your APK and uploading to Clover's system, this ensures that your app has the correct permissions without needing an additional token.
10 |2000

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

Sukhbir Singh avatar image
Sukhbir Singh answered Sukhbir Singh edited
Hi @Drew_Clover,

Yes, you should need to generate access token with the help of SDK and send that value with rest API.

Like as in android you can get access token from following code:

CloverAuth.AuthResult authResult = CloverAuth.authenticate(activity, mAccount);
access_token=authResult.authToken

Also, you can get access token with the help of OAuth 2.0 process, to get more information please visit the following link:
https://docs.clover.com/clover-platform/docs/using...

The following link will be very helpful to find Clover Web APIs:
https://docs.clover.com/clover-platform/reference

Thank you.
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