Skip to content

zonghow/newapi-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

newapi-cli

Named-command CLI for selected New API endpoints.

Commands

newapi data quota --base-url https://your-newapi.com --access-token xxx --user-id 1 --start 1714492800 --end 1717171199
newapi data quota --start 1714492800 --end 1717171199 --username alice
newapi data users --start 1714492800 --end 1717171199

Environment Variables

export NEWAPI_BASE_URL=https://your-newapi.com
export NEWAPI_ACCESS_TOKEN=xxx
export NEWAPI_USER_ID=1

Command flags override environment variables.

Supported Endpoints

  • newapi data quota: GET /api/data/
  • newapi data users: GET /api/data/users

Both endpoints require Admin permission.

Output

Output is compact JSON by default. Use --pretty for formatted JSON.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors