-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.js
More file actions
60 lines (52 loc) · 1.1 KB
/
test.js
File metadata and controls
60 lines (52 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import PANELRIP from './lib/src/index.js';
const client = new PANELRIP({
key: "YOUR_API_KEY_GENERATED_FROM_PANEL.RIP"
})
// 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"}
*/