Skip to content

sharpapi/php-core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SharpAPI GitHub cover

SharpAPI.com PHP Core functionalities & communication

🚀 Automate workflows with AI-powered API

Leverage AI API to streamline workflows in E-Commerce, Marketing, Content Management, HR Tech, Travel, and more.

See more at SharpAPI.com Website »


Quota Method

The quota() method returns a SubscriptionInfo DTO with the following fields:

Field Type Description
timestamp Carbon Timestamp of the subscription check
on_trial bool Whether the account is on a trial period
trial_ends Carbon End date of the trial period
subscribed bool Whether the user is currently subscribed
current_subscription_start Carbon Start of the current subscription period
current_subscription_end Carbon End of the current subscription period
current_subscription_reset Carbon Quota reset timestamp
subscription_words_quota int Total word quota for the period
subscription_words_used int Words used in the current period
subscription_words_used_percentage float Percentage of word quota used
requests_per_minute int Maximum API requests allowed per minute
$client = new SharpApiClient('your-api-key');
$quota = $client->quota();

echo $quota->subscription_words_quota;
echo $quota->requests_per_minute;

Credits


License

The MIT License (MIT).


Social Media

🚀 For the latest news, tutorials, and case studies, don't forget to follow us on:

About

SharpAPI.com PHP Core functionalities & communication

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages