Skip to main content

Python Client SDK Generated by Speakeasy

Project description

Resend is the email platform for developers.

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

email

  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

resend-client-sdk-python-1.8.2.tar.gz (17.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

resend_client_sdk_python-1.8.2-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file resend-client-sdk-python-1.8.2.tar.gz.

File metadata

File hashes

Hashes for resend-client-sdk-python-1.8.2.tar.gz
Algorithm Hash digest
SHA256 9df1e7959807c89fd570341b15aff909e585bbc54ab2a8d2147e6b2b680c3016
MD5 cfac0c7fbf03bd942b91deb39c54c117
BLAKE2b-256 21ac2d0990d4529477b70f4498d7c4311f78a4474e9925a8b1d485538e31a23c

See more details on using hashes here.

File details

Details for the file resend_client_sdk_python-1.8.2-py3-none-any.whl.

File metadata

File hashes

Hashes for resend_client_sdk_python-1.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4fda0800856880e90cb5dfb29cd0ddb01c1ac861afa0aaa7ed6637759a72ca14
MD5 dfa2b5f35d2f050a95a5276dcd116774
BLAKE2b-256 fa4e8936e41c4a72ae2db01a87c141bf74c1e212f0e7ad0c8e272bcd085b0dd7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page