@clawcard/cli 0.1.1 → 0.1.3
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/bin/setup.mjs +9 -11
- package/package.json +1 -1
package/bin/setup.mjs
CHANGED
|
@@ -8,7 +8,7 @@ const OPENCLAW_DIR = join(homedir(), ".openclaw");
|
|
|
8
8
|
const SKILLS_DIR = join(OPENCLAW_DIR, "skills", "clawcard");
|
|
9
9
|
const SKILL_PATH = join(SKILLS_DIR, "SKILL.md");
|
|
10
10
|
|
|
11
|
-
const DEFAULT_BASE_URL = "https://clawcard.sh";
|
|
11
|
+
const DEFAULT_BASE_URL = "https://www.clawcard.sh";
|
|
12
12
|
|
|
13
13
|
const SKILL_MD = `---
|
|
14
14
|
name: clawcard
|
|
@@ -22,7 +22,7 @@ You have access to ClawCard — a platform that gives you a real email address,
|
|
|
22
22
|
|
|
23
23
|
## Getting Started
|
|
24
24
|
|
|
25
|
-
Base URL: $CLAWCARD_BASE_URL (default: https://clawcard.sh)
|
|
25
|
+
Base URL: $CLAWCARD_BASE_URL (default: https://www.clawcard.sh)
|
|
26
26
|
Auth header: Authorization: Bearer $CLAWCARD_API_KEY
|
|
27
27
|
|
|
28
28
|
**Step 1: Discover your identity.** Call GET /api/me first — it returns your keyId, email, phone, and budget. Use the keyId for all other endpoints.
|
|
@@ -53,17 +53,13 @@ curl -X POST -H "Authorization: Bearer $CLAWCARD_API_KEY" -H "Content-Type: appl
|
|
|
53
53
|
-d '{"to":"recipient@example.com","subject":"Hello","body":"Message text"}' \\
|
|
54
54
|
$CLAWCARD_BASE_URL/api/agents/KEY_ID/emails/send
|
|
55
55
|
|
|
56
|
-
### SMS
|
|
56
|
+
### SMS (inbound only)
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
Each key gets a dedicated phone number for receiving SMS (e.g. verification codes). Outbound SMS is not currently supported.
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
**Send SMS:**
|
|
60
|
+
**Read received messages:**
|
|
63
61
|
|
|
64
|
-
curl -
|
|
65
|
-
-d '{"to":"+15551234567","body":"Message text"}' \\
|
|
66
|
-
$CLAWCARD_BASE_URL/api/agents/KEY_ID/sms/send
|
|
62
|
+
curl -H "Authorization: Bearer $CLAWCARD_API_KEY" "$CLAWCARD_BASE_URL/api/agents/KEY_ID/sms?limit=20"
|
|
67
63
|
|
|
68
64
|
### Virtual Cards
|
|
69
65
|
|
|
@@ -77,7 +73,9 @@ curl -X POST -H "Authorization: Bearer $CLAWCARD_API_KEY" -H "Content-Type: appl
|
|
|
77
73
|
-d '{"amountCents":1000,"memo":"Hosting payment","type":"single_use"}' \\
|
|
78
74
|
$CLAWCARD_BASE_URL/api/agents/KEY_ID/cards
|
|
79
75
|
|
|
80
|
-
Card types:
|
|
76
|
+
Card types:
|
|
77
|
+
- single_use — card closes automatically after one successful transaction. Best for one-time purchases.
|
|
78
|
+
- merchant_locked — card locks to the first merchant that charges it. Best for subscriptions or repeated payments to the same service (e.g. hosting, SaaS).
|
|
81
79
|
|
|
82
80
|
**Get card details (PAN, CVV):**
|
|
83
81
|
|