π¦ ClawHub
Twilio
by @byungkyu
Twilio API integration with managed OAuth. SMS, voice calls, phone numbers, and communications. Use this skill when users want to send SMS messages, make voi...
π‘ Examples
# List all accounts
python <<'EOF'
import urllib.request, os, json
req = urllib.request.Request('https://api.maton.ai/twilio/2010-04-01/Accounts.json')
req.add_header('Authorization', f'Bearer {os.environ["MATON_API_KEY"]}')
print(json.dumps(json.load(urllib.request.urlopen(req)), indent=2))
EOF
π Tips & Best Practices
/2010-04-01/ API version prefixapplication/x-www-form-urlencoded format (not JSON)AC
- Message SIDs start with SM (SMS) or MM (MMS)
- Call SIDs start with CA
- Phone Number SIDs start with PN
- Application SIDs start with AP
- Queue SIDs start with QU
jq or other commands, environment variables like $MATON_API_KEY may not expand correctly in some shell environmentsTERMINAL
clawhub install twilio-api