|
2 | 2 |
|
3 | 3 |  |
4 | 4 | [](LICENSE-MIT) |
5 | | - |
| 5 | +[](LICENSE-APACHE) |
| 6 | +[](https://crates.io/crates/infobip_sdk) |
6 | 7 |  |
7 | 8 |
|
8 | 9 | Client SDK to use the Infobip API with pure Rust. |
9 | 10 |
|
10 | | -This library enables you to use multiple Infobip communication channels, like SMS, MMS, |
11 | | -Whatsapp, Email, etc. It abstracts the needed HTTP calls, and models payloads and error |
12 | | -handling. The module structure is divided by communication channel. |
| 11 | +This crate enables you to use multiple Infobip communication channels, like SMS, MMS, |
| 12 | +WhatsApp, Email, etc. It abstracts the needed HTTP calls, models and validates payloads and |
| 13 | +models errors. The module structure is divided by communication channel. |
13 | 14 |
|
14 | 15 | --- |
15 | 16 |
|
16 | 17 | ## 📡 Supported Channels |
17 | 18 | - [SMS](https://www.infobip.com/docs/api/channels/sms) |
18 | | -- [WhatsApp](https://www.infobip.com/docs/api/channels/whatsapp) (partially, in progress) |
| 19 | +- [WhatsApp](https://www.infobip.com/docs/api/channels/whatsapp) |
19 | 20 |
|
20 | 21 | More Channels to be added in the near future! |
21 | 22 |
|
22 | 23 | ## 🔐 Authentication |
23 | | -To use the library, you'll need to set up an Infobip account. Then you can use your API Key and |
24 | | -custom URL to call the endpoints. You can use the `Configuration::from_env_api_key()` method to |
25 | | -load the configuration from the environment. To do that, export the variables `IB_API_KEY` and |
26 | | -`IB_BASE_URL`. |
| 24 | +To use the library, you'll need to set up an [Infobip account](https://www.infobip.com/signup). |
| 25 | +Then you can use your API Key and custom base URL to call the endpoints. You can use the |
| 26 | +`Configuration::from_env_api_key()` method to load the configuration from the environment. To |
| 27 | +do that, set the `IB_API_KEY` and `IB_BASE_URL` variables. |
27 | 28 |
|
28 | 29 | ## 📦 Installation |
29 | 30 | To use the library, add the dependency to your projects `Cargo.toml` |
@@ -67,10 +68,10 @@ async fn main() { |
67 | 68 | ``` |
68 | 69 |
|
69 | 70 | ## 👀 Examples |
70 | | -The best way to learn how to use the library is to look at the official docs.rs documentation, |
71 | | -which has simple examples on how to use every endpoint. You can also look at integration tests |
72 | | -under the [tests](./tests) directory, which work similarly to how you would use them in a real |
73 | | -scenario. |
| 71 | +The best way to learn how to use the library is to look at the official |
| 72 | +[docs.rs documentation](https://docs.rs/infobip_sdk/), which has simple examples on how to use |
| 73 | +every endpoint. You can also look at integration tests under the [tests](./tests) directory, |
| 74 | +which work similarly to how you would use them in a real scenario. |
74 | 75 |
|
75 | 76 | ## 🗒 Notes |
76 | 77 |
|
@@ -131,7 +132,7 @@ is done automatically when calling an endpoint, or you can call the `.validate() |
131 | 132 | model. |
132 | 133 |
|
133 | 134 | ### Using features |
134 | | -You can speed up compile-times a bit by turning only the needed channels as library features. |
| 135 | +You can speed up compile time by turning only the needed channels as library features. |
135 | 136 | For example, to only build SMS, add the dependency like this: |
136 | 137 | ```toml |
137 | 138 | infobip_sdk = { version = "0.1", features = ["sms"] } |
|
0 commit comments