GetConsumptionCredit

Metered.GetConsumptionCredit method

Retrieves amount of used credits

public static decimal GetConsumptionCredit()

Examples

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 usedCredits = Metered.GetConsumptionCredit();

See Also