|
7 | 7 | [](https://github.com/android-sms-gateway/client-ts/stargazers) |
8 | 8 | [](https://www.typescriptlang.org/) |
9 | 9 |
|
10 | | -A TypeScript-first client for seamless integration with the [SMS Gateway for Android](https://sms-gate.app) API. Programmatically send SMS messages through your Android devices with strict typing and modern JavaScript features. |
| 10 | +A TypeScript-first client for seamless integration with the [SMSGate](https://sms-gate.app) API. Programmatically send SMS messages through your Android devices with strict typing and modern JavaScript features. |
11 | 11 |
|
12 | 12 | **Note**: The API doesn't provide CORS headers, so the library cannot be used in a browser environment directly. |
13 | 13 |
|
@@ -130,7 +130,7 @@ async function generateJWTToken() { |
130 | 130 | async function initializeJWTClient() { |
131 | 131 | const jwtToken = await generateJWTToken(); |
132 | 132 |
|
133 | | - // Initialize client with JWT token (empty string for login, token for passwordOrToken) |
| 133 | + // Initialize client with JWT token (empty string for login, token for password) |
134 | 134 | const jwtClient = new Client( |
135 | 135 | "", // Empty string for login when using JWT |
136 | 136 | jwtToken // JWT token |
@@ -277,12 +277,12 @@ api.patchSettings(partialSettings) |
277 | 277 |
|
278 | 278 | The `Client` class accepts the following constructor arguments: |
279 | 279 |
|
280 | | -| Argument | Description | Default | |
281 | | -| ----------------- | -------------------------- | ---------------------------------------- | |
282 | | -| `login` | Username or empty string | **Required** | |
283 | | -| `passwordOrToken` | Password or JWT token | **Required** | |
284 | | -| `httpClient` | HTTP client implementation | **Required** | |
285 | | -| `baseUrl` | API base URL | `"https://api.sms-gate.app/3rdparty/v1"` | |
| 280 | +| Argument | Description | Default | |
| 281 | +| ------------ | -------------------------- | ---------------------------------------- | |
| 282 | +| `login` | Username or empty string | **Required** | |
| 283 | +| `password` | Password or JWT token | **Required** | |
| 284 | +| `httpClient` | HTTP client implementation | `fetch` | |
| 285 | +| `baseUrl` | API base URL | `"https://api.sms-gate.app/3rdparty/v1"` | |
286 | 286 |
|
287 | 287 | #### Authentication Configuration |
288 | 288 |
|
|
0 commit comments