Socket
Book a DemoInstallSign in
Socket

pteromanager-beta

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

pteromanager-beta

The Pterodactyl Manager Beta Package

1.0.0
unpublished
latest
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

PteroManager: The Pterodactyl Manager For You!

If you have issues with downloading this package, and you come accross "package.json" not found, open a cmd.exe in the startup bar of your PC and then type npm init -y

If you're having any issues, contact jeweetzelf#1911 on Discord and ask for support.

Installation

npm install pteromanager

What Is PteroManager?

PteroManager is a node.js library that can be filled with all your needs! I am currently busy, so I'll try my best to update this package as soon as possible.

Documentation

IMPORTANT: DO NOT USE THE ADDAPIKEY FUNCTION, IT WILL BREAK YOUR ACCOUNT! IT IS STILL IN THE TESTING PHASE!!!

To make a new client, you need to do add a new Client and import PteroManager. The Client needs a panelURl, APIKey and a password. For example:

const pteromanager = require('pteromanager');
const Client = new pteromanager.Client('panel.example.com', 'YourAPIKey', 'youShallNotPass')

All The Functions That Are Now Available Are:

const pteromanager = require('pteromanager');
const Client = new pteromanager.Client('panel.example.com', 'YourAPIKey', 'youShallNotPass')

Client.getAccountDetails().then(res => {
    console.log(res)
    
    /*
    This will return something like this:

    {
        object: 'user',
        attributes: {
            id: 4235,
            admin: false,
            username: 'PteroManager',
            email: 'example@xample.com',
            first_name: 'Ptero',
            last_name: 'Manager',
            language: 'en'
        }
    }
*/

})

Client.getAPIKeys().then(res => {
    console.log(res)

    /*
    This will return something like this:

    [
        {
            object: 'api_key',
            attributes: {
            identifier: 'xxxxxxxxxxxxxxxx',
            description: 'Test Package',
            allowed_ips: [],
            last_used_at: '2021-06-06T14:00:45-04:00',
            created_at: '2021-06-06T06:19:48-04:00'
            }
        },
        {
            object: 'api_key',
            attributes: {
            identifier: 'xxxxxxxxxxxxxxxx',
            description: 'test',
            allowed_ips: [],
            last_used_at: null,
            created_at: '2021-06-06T13:53:12-04:00'
            }
        },
    ]
    */
})

Further Documentation

Soon™

FAQs

Package last updated on 07 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.