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 client provides an idiomatic Rust interface to the APIs available at [Openapi](https://openapi.com).
19
+
It simplifies integration with the Openapi Marketplace, offering typed requests, async support, and built-in error handling.
20
+
With this SDK you can quickly connect to hundreds of certified APIs and accelerate your digital transformation projects.
5
21
6
22
## Pre-requisites
7
23
8
-
Before using the OpenApi IT Rust Client, you will need an account at [openapi.it](https://openapi.it/) and an API key to the sandbox and/or production environment
24
+
Before using the Openapi Rust Client, you will need an account at [Openapi](https://console.openapi.com/) and an API key to the sandbox and/or production environment
25
+
26
+
## What you can do
27
+
28
+
With the Openapi Rust Client, you can easily interact with a variety of services in the Openapi Marketplace. For example, you can:
29
+
30
+
- 📩 **Send SMS messages** with delivery reports and custom sender IDs
31
+
- 💸 **Process bills and payments** in real time via API
32
+
- 🧾 **Send electronic invoices** securely to the Italian Revenue Agency
33
+
- 📄 **Generate PDFs** from HTML content, including JavaScript rendering
34
+
- ✉️ **Manage certified emails** and legal communications via Italian Legalmail
35
+
36
+
For a complete list of all available services, check out the [Openapi Marketplace](https://console.openapi.com/) 🌐
9
37
10
38
## Installation
11
39
12
-
You can add the OpenApi IT Rust Client to your project with the following command:
40
+
You can add the Openapi Rust Client to your project with the following command:
13
41
14
42
```bash
15
-
cargo add openapiit-cli-rust
43
+
cargo add openapi-sdk
16
44
```
17
45
18
46
## Usage
19
47
20
-
```rust
21
-
usestd::collections::HashMap;
48
+
The client has two main operational modes:
49
+
50
+
### 1. Token Generation (OAuth Client)
51
+
52
+
Use the `OauthClient` to generate access tokens for API access:
You can find complete examples in the `examples/` directory:
153
+
154
+
-`examples/token_generation.rs` - Token generation example
155
+
-`examples/api_calls.rs` - API calls example
156
+
157
+
Run examples with:
158
+
```bash
159
+
cargo run --example token_generation
160
+
cargo run --example api_calls
161
+
```
162
+
163
+
## Testing
164
+
165
+
Run tests with:
166
+
```bash
167
+
cargo test
168
+
```
169
+
100
170
## Contributing
101
171
102
-
Contributions are always welcome!
172
+
Contributions are always welcome! Whether you want to report bugs, suggest new features, improve documentation, or contribute code, your help is appreciated.
173
+
174
+
See [docs/contributing.md](docs/contributing.md) for detailed instructions on how to get started. Please make sure to follow this project's [docs/code-of-conduct.md](docs/code-of-conduct.md) to help maintain a welcoming and collaborative environment.
103
175
104
-
See `contributing.md` for ways to get started.
176
+
## Authors
177
+
178
+
Meet the project authors:
179
+
180
+
- Michael Cuffaro ([@maiku1008](https://www.github.com/maiku1008))
181
+
- Openapi Team ([@openapi-it](https://github.com/openapi-it))
105
182
106
-
Please adhere to this project's `code of conduct`.
183
+
## Partners
107
184
185
+
Meet our partners using Openapi or contributing to this SDK:
This project is licensed under the [MIT License](LICENSE).
112
201
202
+
The MIT License is a permissive open-source license that allows you to freely use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the software, provided that the original copyright notice and this permission notice are included in all copies or substantial portions of the software.
113
203
114
-
## Authors
204
+
In short, you are free to use this SDK in your personal, academic, or commercial projects, with minimal restrictions. The project is provided "as-is", without any warranty of any kind, either expressed or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and non-infringement.
115
205
116
-
-[@maiku1008](https://www.github.com/maiku1008)
117
-
-[@openapi-it](https://github.com/openapi-it)
206
+
For more details, see the full license text at the [MIT License page](https://choosealicense.com/licenses/mit/).
0 commit comments