Some examples of how to use the SSH.SURF API and SSH.SURF API Wrapper (ssh.surf).
- Node.js v18.16.x or higher
- NPM v9.x.x or higher
- Clone this repository:
git clone https://github.com/itskdhere/ssh.surf-api-examples
cd ssh.surf-api-examples
- Install dependencies:
npm install
- Create a .env file and add your SSH.SURF API key:
cp .env.example .env
nano .env
- Run the examples:
npm run hello
npm run name
npm run start
npm run stop
npm run restart
npm run info
npm run stats
npm run time
npm run newRootPass
npm run newKey
npm run keyTime
npm run license
npm run exec
npm run notify
npm run notifyRevolt
That's it! 🙂