public final void setMeteredKey(String publicKey, String privateKey)
Activates product with Metered keys.
Following example demonstrates how to activate product with Metered keys.
string publicKey = "Public Key";
string privateKey = "Private Key";
Metered metered = new Metered();
metered.SetMeteredKey(publicKey, privateKey);
Parameters:
Parameter
Type
Description
publicKey
java.lang.String
The public key.
privateKey
java.lang.String
The private key.
getConsumptionQuantity()
public static double getConsumptionQuantity()
Retrieves amount of MBs processed.
Following example demonstrates how to retrieve amount of MBs processed.
string publicKey = "Public Key";
string privateKey = "Private Key";
Metered metered = new Metered();
metered.SetMeteredKey(publicKey, privateKey);
decimal mbProcessed = Metered.GetConsumptionQuantity();
Returns:
double
getConsumptionCredit()
public static double getConsumptionCredit()
Retrieves count of credits consumed.
Following example demonstrates how to retrieve count of credits consumed.
string publicKey = "Public Key";
string privateKey = "Private Key";
Metered metered = new Metered();
metered.SetMeteredKey(publicKey, privateKey);
decimal creditsConsumed = Metered.GetConsumptionCredit();
Returns:
double
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.