Skip to content
Discussion options

You must be logged in to vote

Hey! Thanks for bringing up this question! Currently, the best way to achieve this is by calling setConsumedQuota. Consider a scenario in which your subscribers can call your API 30 times per month:

$subscriber->consume('api-calls', 15);
// Now, this subscriber has 15 remaining calls

$subscriber->consume('api-calls', 10);
// There are only 5 calls left

$subscriber->setConsumedQuota('api-calls', 20);
// Now, they can call it 10 times

I'm not sure if it fits your needs, so please let me know if I can help you with something more. 🚀

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@thalisvilela
Comment options

@thalisvilela
Comment options

Answer selected by lucasdotvin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants