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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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