cli icon indicating copy to clipboard operation
cli copied to clipboard

[feature] Command to show quota. (possible using the /me endpoint)

Open eacp opened this issue 3 years ago • 2 comments

Sometime ago, I used the /me EP to validate the token during auth. The /me EP actually returns usefull quota information, but at this point it is not used.

I propose a command that displays the quota information.

$ ipinfo quota

Requests
Day: 0,
Month: 9,
Limit: 50000,
Remaining: 49991


"features": {
    "core": {
      "daily": 2147483647,
      "monthly": 50000
    },
    "hostio": {
      "daily": 2147483647,
      "monthly": 1000,
      "result_limit": 5
    }
  }

Or something similar. The design is pending.

eacp avatar Nov 29 '21 15:11 eacp

Yeah a quota subcommand would be nice. But we probably need a different endpoint for this as the existing one gives potentially confusing data, like when it says limit/remaining, what does that mean - is that for core, asn, or what?

I'll figure smth out for this later, thanks for the suggestion!

UmanShahzad avatar Nov 30 '21 03:11 UmanShahzad

@UmanShahzad I have this proposal:

Either allow parameters in the quoata command to let the user choose WHAT to use, or default to core

eacp avatar Apr 26 '22 05:04 eacp

Solved in #131

rm-Umar avatar Feb 08 '23 10:02 rm-Umar