executive-pi 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
# executive-pi
|
|
2
2
|
|
|
3
3
|
JavaScript SDK wrapper for Pi Platform API backend flows (U2A + A2U).
|
|
4
|
-
|
|
5
4
|
Pi, Pi Network and the Pi logo are trademarks of the Pi Community Company.
|
|
6
5
|
|
|
6
|
+
## About
|
|
7
|
+
|
|
8
|
+
`executive-pi` is a public library for Pi SDK / Pi Platform API backend integration.
|
|
9
|
+
This library is created and published by **Deni Darmayana**.
|
|
10
|
+
|
|
7
11
|
## Requirements
|
|
8
12
|
|
|
9
13
|
- Node.js 18+
|
|
@@ -15,6 +19,9 @@ Pi, Pi Network and the Pi logo are trademarks of the Pi Community Company.
|
|
|
15
19
|
npm install executive-pi
|
|
16
20
|
```
|
|
17
21
|
|
|
22
|
+
Package npm:
|
|
23
|
+
- https://www.npmjs.com/package/executive-pi
|
|
24
|
+
|
|
18
25
|
## Quick Start
|
|
19
26
|
|
|
20
27
|
```js
|
|
@@ -28,6 +35,16 @@ const payment = await pi.getPayment('PAYMENT_ID')
|
|
|
28
35
|
console.log(payment)
|
|
29
36
|
```
|
|
30
37
|
|
|
38
|
+
## Constructor
|
|
39
|
+
|
|
40
|
+
```js
|
|
41
|
+
new PiJavascript({
|
|
42
|
+
apiKey: process.env.PI_API_KEY,
|
|
43
|
+
baseUrl: 'https://api.minepi.com/v2', // optional
|
|
44
|
+
fetchImpl: fetch, // optional
|
|
45
|
+
})
|
|
46
|
+
```
|
|
47
|
+
|
|
31
48
|
## API
|
|
32
49
|
|
|
33
50
|
- `approvePayment(paymentId)`
|
|
@@ -50,3 +67,8 @@ PI_API_KEY=your_key node examples/list-incomplete.js
|
|
|
50
67
|
npm test
|
|
51
68
|
```
|
|
52
69
|
|
|
70
|
+
## Contact
|
|
71
|
+
|
|
72
|
+
- Author: Deni Darmayana
|
|
73
|
+
- WhatsApp: 085711999369
|
|
74
|
+
- Email: denidarmayana88@gmail.com
|