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
Close
Hashes for resend-client-sdk-python-1.8.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9df1e7959807c89fd570341b15aff909e585bbc54ab2a8d2147e6b2b680c3016 |
|
MD5 | cfac0c7fbf03bd942b91deb39c54c117 |
|
BLAKE2b-256 | 21ac2d0990d4529477b70f4498d7c4311f78a4474e9925a8b1d485538e31a23c |
Close
Hashes for resend_client_sdk_python-1.8.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fda0800856880e90cb5dfb29cd0ddb01c1ac861afa0aaa7ed6637759a72ca14 |
|
MD5 | dfa2b5f35d2f050a95a5276dcd116774 |
|
BLAKE2b-256 | fa4e8936e41c4a72ae2db01a87c141bf74c1e212f0e7ad0c8e272bcd085b0dd7 |