Skip to content

Return User Usage Limits / Current Usage towards Throttle Limits #126

Closed
@tyeth

Description

@tyeth

There is an API endpoint for fetching the current users data rate information. See the IO HTTP API Docs here: https://io.adafruit.com/api/docs/#get-detailed-user-info

The endpoint is https://io.adafruit.com/api/v2/tyeth/throttle where tyeth is your username.
The result looks like this:

{
    "data_rate_limit": 90,
    "active_data_rate": 2,
    "authentication_rate": 0,
    "subscribe_authorization_rate": 0,
    "publish_authorization_rate": 0,
    "hourly_ban_rate": 0,
    "mqtt_ban_error_message": null,
    "sms_message_limit": 0
}

It would be useful to have this available to users via a method built into the IO_HTTP class.
Ideally the MQTT class would also support this functionality, but it is currently not available over the MQTT broker (AFAIK).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions