NAME

WebService::DetectLanguage::AccountStatus - holds account status from detectlanguage.com

SYNOPSIS

my $status = $api->account_status();
printf "language = %s\n", $status->date;
printf "requests = %d\n", $result->requests;
printf "plan     = %s\n", $result->plan;
printf "status   = %s\n", $result->status;
...

DESCRIPTION

This module is a class for data objects returned by the account_status() method of WebService::DetectLanguage.

See the documentation of that module for more details.

ATTRIBUTES

date

Today's date, in ISO 8601 format (YYYY-MM-DD), for the UTC timezone.

requests

The number of requests sent today.

bytes

Text bytes sent today.

plan

The text code for the plan you're on. A list of the supported plans can be seen at https://detectlanguage.com/plans.

plan_expires

The date when your plan will expire. This will be undef is there's no planned expiry.

daily_requests_limit

The maximum number of requests you can make in a day.

daily_bytes_limit

The number of bytes you can send per day.

status

A text string giving the status for your account.

SEE ALSO

WebService::DetectLanguage the main module for talking to the language detection API at detectlanguage.com.

https://detectlanguage.com/documentation#account-status the API's documentation for the account status method.

AUTHOR

Neil Bowers <neilb@cpan.org>

LICENSE AND COPYRIGHT

This software is copyright (c) 2019 by Neil Bowers <neilb@cpan.org>.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.