You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a JavaScript/TypeScript client library for interfacing with the [Android SMS Gateway API](https://sms.capcom.me).
11
+
# SMS Gateway for Android™ JS/TS API Client
12
+
13
+
This is a JavaScript/TypeScript client library for interfacing with the [SMS Gateway for Android API](https://sms.capcom.me).
4
14
5
15
## Features
6
16
7
17
- Send SMS messages with a simple method call.
8
18
- Check the state of sent messages.
19
+
- Managing webhooks.
9
20
- Customizable base URL for use with local or cloud servers.
10
21
11
22
## Prerequisites
@@ -17,7 +28,7 @@ Before you begin, ensure you have met the following requirements:
17
28
18
29
## Installation
19
30
20
-
To install the SMS Gateway API Client, run this command in your terminal:
31
+
To install the SMS Gateway for Android API Client, run this command in your terminal:
21
32
22
33
```bash
23
34
npm install android-sms-gateway
@@ -52,6 +63,14 @@ const httpFetchClient = {
52
63
body:JSON.stringify(body)
53
64
});
54
65
66
+
returnresponse.json();
67
+
},
68
+
delete:async (url, headers) => {
69
+
constresponse=awaitfetch(url, {
70
+
method:"DELETE",
71
+
headers
72
+
});
73
+
55
74
returnresponse.json();
56
75
}
57
76
};
@@ -79,7 +98,7 @@ apiClient.getState(messageId)
79
98
80
99
## API Reference
81
100
82
-
For more information on the API endpoints and data structures, please consult the [Android SMS Gateway API documentation](https://sms.capcom.me/api/).
101
+
For more information on the API endpoints and data structures, please consult the [SMS Gateway for Android API documentation](https://sms.capcom.me/integration/api/).
0 commit comments