Skip to content

Panel.Rip's public NodeJS SDK for developers and resellers.

License

Notifications You must be signed in to change notification settings

panel-rip/node-sdk

Repository files navigation

Welcome to @panel-rip/node-sdk 👋

Version Documentation License: MPL 2.0 Twitter: hiizunfr

Panel.Rip's public NodeJS SDK for developers and resellers.

Demo

Install

npm i @panel-rip/node-sdk

Usage

import panelrip from '@panel-rip/node-sdk'

const client = new panelrip({
    key: "YOUR API KEY GENERATED FROM PANEL.RIP" // https://panel.rip/account
})

// get balance
client.balance().then(console.log).catch(console.error);
/*
{balance: 100, currency: "USD"}
*/

// get services
client.services().then(console.log).catch(console.error);
/*
[
...  
{
    rate: '0.02',
    service: '308',
    category: '📱 Telegram Post Views',
    name: 'Telegram Post Views | No Refill | Max 3M | TEST SERVER',
    type: 'Default',
    min: '10',
    max: '3000000'
  },
  ...
  ]
  */

// get order status
client.order("ORDER ID").then(console.log).catch(console.error);
/*
{
  charge: '0.39',
  start_count: '0',
  status: 'Completed',
  remains: '0',
  currency: 'EUR'
}
*/


// order on panel.rip
client.order_create("308", "https://t.me/@panel.rip", 1000).then(console.log).catch(console.error);
/*
{order: "order id"}
*/

// get refill status
client.refill_status("refill id").then(console.log).catch(console.error);
/*
{status: "Completed"}
*/

// create refill
client.refill("order id").then(console.log).catch(console.error);
/*
{refill: "refill id"}
*/

Author

👤 HiiZun [email protected]

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

About

Panel.Rip's public NodeJS SDK for developers and resellers.

Resources

License

Stars

Watchers

Forks

Packages

No packages published