Python Client SDK Generated by Speakeasy
Project description
SDK Installation
pip install resend-client-sdk-python
Authentication
To authenticate you need to add an Authorization header with the contents of the header being Bearer re_123456789 where re_123456789 is your API Key. First, you need to get an API key, which is available in the Resend Dashboard.
Authorization: Bearer re_123
SDK Example Usage
import resend
from resend.models import operations, shared
s = resend.Resend()
s.config_security(
security=shared.Security(
bearer_auth="Bearer YOUR_BEARER_TOKEN_HERE",
)
)
req = operations.SendEmailRequest(
request=shared.Email(
from_="hello@resend.com",
to="thefuture@yourcompany.com",
subject="Welcome to Resend!",
text="Hello, World!",
),
)
res = s.email.send_email(req)
if res.send_email_response is not None:
# handle response
SDK Available Operations
send_email- Send an email
Contributions
While we value open-source contributions to this SDK, this library is generated programmatically. Feel free to open a PR or a Github issue as a proof of concept and we'll do our best to include it in a future release !
SDK Generated by Speakeasy
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file resend-client-sdk-python-1.8.2.tar.gz.
File metadata
- Download URL: resend-client-sdk-python-1.8.2.tar.gz
- Upload date:
- Size: 17.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9df1e7959807c89fd570341b15aff909e585bbc54ab2a8d2147e6b2b680c3016
|
|
| MD5 |
cfac0c7fbf03bd942b91deb39c54c117
|
|
| BLAKE2b-256 |
21ac2d0990d4529477b70f4498d7c4311f78a4474e9925a8b1d485538e31a23c
|
File details
Details for the file resend_client_sdk_python-1.8.2-py3-none-any.whl.
File metadata
- Download URL: resend_client_sdk_python-1.8.2-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4fda0800856880e90cb5dfb29cd0ddb01c1ac861afa0aaa7ed6637759a72ca14
|
|
| MD5 |
dfa2b5f35d2f050a95a5276dcd116774
|
|
| BLAKE2b-256 |
fa4e8936e41c4a72ae2db01a87c141bf74c1e212f0e7ad0c8e272bcd085b0dd7
|