question

maninder avatar image
maninder asked maninder commented

What is "meteredId" in this api call appsConnector.logMetered(final String meteredId, final int numberOfEvents);

In the below piece of code api call

     final AppsConnector appsConnector = new AppsConnector(context, account);
     ...
     ......
     ...........

        appsConnector.logMetered("yourMeterId", 1);

     ...
     ......
     ...........

As I am getting client exception so i want to know that is the "meteredId" different for sandbox and production or is it the same ?

2 comments
10 |2000

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

Danielle Cox avatar image Danielle Cox commented ·

I believe it is not. The metered would have to be added in both places, and adding the same item in sandbox and production will always give you different id's.

0 Likes 0 ·
maninder avatar image maninder commented ·

Thank you for your reply.

0 Likes 0 ·

1 Answer

Danielle Cox avatar image
Danielle Cox answered maninder commented

It is not. The metered would have to be added in both places, and adding the same item in sandbox and production will always give you different id's. (Caveat - this is from my own experience - I am not one of the clover moderators)

Danielle

2 comments
10 |2000

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

sam avatar image sam commented ·

Good answer, Danielle.

0 Likes 0 ·
maninder avatar image maninder commented ·

Thank you Danielle and Sam.

0 Likes 0 ·

Welcome to the
Clover Developer Community