blob: 93b9aa248e8c99fcd0eac127d2c5d3d1d3102f9f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
export default {
register: `curl "https://coinos.io/api/register" -H "application/json" -d '{
"username": "adam",
"password": "hunter2"
}'`,
login: `curl "https://coinos.io/api/login" -H "application/json" -d '{
"username": "adam",
"password": "hunter2"
}'`,
invoice: `curl "https://coinos.io/api/invoice"
-H "application/json"
-H "Authorization: Bearer $token"
-d '{
"invoice": {
"amount": 1000,
"type": "lightning",
"webhook": "https://example.com/payment/received",
"secret": "hunter2"
},
}'`,
fetchInvoice: `curl "https://coinos.io/api/invoice/bc1qmhfk9stzffhd9umzmld92vff7zg3mdlh7rvvaj"
-H "application/json"'`
};
|