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
Copy file name to clipboardExpand all lines: README.md
+13-5
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ Optional:
28
28
pip install android_sms_gateway
29
29
```
30
30
31
-
You can also install with preferred http client:
31
+
You can also install it with the preferred HTTP client:
32
32
33
33
```bash
34
34
pip install android_sms_gateway[requests]
@@ -101,25 +101,33 @@ implement the same interface and can be used as context managers.
101
101
102
102
### Methods
103
103
104
-
There are two methods:
104
+
There are two groups of methods:
105
+
106
+
**Messages**
105
107
106
108
-`send(message: domain.Message) -> domain.MessageState`: Send a new SMS message.
107
109
-`get_state(_id: str) -> domain.MessageState`: Retrieve the state of a previously sent message by its ID.
108
110
111
+
**Webhooks**
112
+
113
+
-`get_webhooks() -> list[domain.Webhook]`: Retrieve a list of all webhooks registered for the account.
114
+
-`create_webhook(webhook: domain.Webhook) -> domain.Webhook`: Create a new webhook.
115
+
-`delete_webhook(_id: str)`: Delete a webhook by its ID.
116
+
109
117
## HTTP Client
110
118
111
-
The API clients abstract away the HTTP client used to make requests. The library includes support for some popular HTTP clients and trys to discover them automatically:
119
+
The API clients abstract away the HTTP client used to make requests. The library includes support for some popular HTTP clients and tries to discover them automatically:
112
120
113
121
-[requests](https://pypi.org/project/requests/) - `APIClient` only
114
122
-[aiohttp](https://pypi.org/project/aiohttp/) - `AsyncAPIClient` only
115
123
-[httpx](https://pypi.org/project/httpx/) - `APIClient` and `AsyncAPIClient`
116
124
117
-
Also you can implement your own HTTP client that conforms to the `http.HttpClient` or `ahttp.HttpClient` protocol.
125
+
You can also implement your own HTTP client that conforms to the `http.HttpClient` or `ahttp.HttpClient` protocol.
118
126
119
127
# Contributing
120
128
121
129
Contributions are welcome! Please submit a pull request or create an issue for anything you'd like to add or change.
122
130
123
131
# License
124
132
125
-
This library is open-sourced software licensed under the [Apache-2.0 license](LICENSE).
133
+
This library is open-sourced software licensed under the [Apache-2.0 license](LICENSE).
0 commit comments