Demonstrates sending an SMS, verifying credentials, and checking balance.
- Create a
.envfile with your credentials - Use
KwtSMS.fromEnv()to load them automatically - Call
verify()to test credentials - Call
send()to send a message
- Always call
verify()first to confirm credentials are valid - Save
msgIdfrom the send response for status tracking and delivery reports - Save
balanceAfterfrom the send response to avoid extra API calls - Use
testMode=trueduring development (no credits consumed)