Overview
Use the Hypersender Go SDK to send SMS through the Hypersender SMS app on your Android phone, list your messages, and delete them. SetHYPERSENDER_SMS_API_KEY and HYPERSENDER_SMS_INSTANCE_ID first, as described in Installation.
Every method returns the parsed JSON response body as a hypersender.Result (a map[string]any). If the API answers with an error, the method returns a *hypersender.Error with the StatusCode, Message, and Body of the response; check for it with errors.As. The examples assume ctx is a context.Context, such as context.Background().
If the instance is offline, the API answers
403. If the phone has no push registration, it answers 422 with the code PHONE_PUSH_NOT_REGISTERED. See the SMS heartbeats guide and How it works.Methods
Send SMS Message
Queue an SMS to be sent by your Android phone. (learn more)- Basic Usage
- Parameters
List Messages
Get a paginated list of messages, with filters. (learn more)- Basic Usage
- Basic Usage with Filters
- Parameters
Delete Message
Delete a message by its ID. (learn more)- Basic Usage
- Parameters