File tree Expand file tree Collapse file tree 1 file changed +73
-0
lines changed Expand file tree Collapse file tree 1 file changed +73
-0
lines changed Original file line number Diff line number Diff line change 1+ # Thepeer node
2+
3+ ## Installation
4+
5+ ``` bash
6+ npm i thepeer-node
7+ ```
8+
9+ ## Usage
10+
11+ ``` js
12+ const thepeer = new Thepeer (secretKey)
13+
14+ let user
= thepeer .
indexUser (
" Thor Odin" ,
" thor" ,
" [email protected] " );
15+ ```
16+
17+ ### Available methods
18+
19+ * validateSiganture
20+ - ` accepts ` :
21+ - request (object)
22+ - signature (object)
23+ - ` returns ` : boolean
24+
25+ * getSendReceipt
26+ - ` accepts ` :
27+ - receipt_id (string)
28+ - ` returns ` : object
29+
30+ * processSendReceipt
31+ - ` accepts ` :
32+ - receipt_id (string)
33+ - insufficient_funds (bool)
34+ - ` returns ` : object
35+
36+ * indexUser
37+ - ` accepts ` :
38+ - name (string)
39+ - email (string)
40+ - identifier (string)
41+ - ` returns ` : object
42+
43+ * updateUser
44+ - ` accepts ` :
45+ - reference (string)
46+ - identifier (string)
47+ - ` returns ` : object
48+
49+ * deleteUser
50+ - ` accepts ` :
51+ - reference (string)
52+ - ` returns ` : boolean
53+
54+ * getLink
55+ - ` accepts ` :
56+ - lind_id (string)
57+ - ` returns ` : object
58+
59+ * chargeLink
60+ - ` accepts ` :
61+ - lind_id (string)
62+ - amount (integer)
63+ - ` returns ` : object
64+
65+ * authorizaDirectCharge
66+ - ` accepts ` :
67+ - reference (string)
68+ - insufficient_funds (bool)
69+ - ` returns ` : object
70+
71+ ## Extra
72+
73+ Refer to the [ documentation] ( https://docs.thepeer.co ) for more information.
You can’t perform that action at this time.
0 commit comments