Skip to main content

Official Parlo email API client for Python — send transactional email and manage sending domains.

Project description

parlo-sdk

The Parlo API sends transactional email and manages the sending domains it authenticates from. Marketing campaigns (audiences, templates, broadcasts) are designed and sent from the Parlo dashboard, not this API — the API is transactional-only at launch.

All requests authenticate with a company API key as an HTTP bearer token: Authorization: Bearer parlo_live_xxx. Errors return a JSON body of the shape { \"message\": string, \"code\": string }.

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.24.0-SNAPSHOT
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://getparlo.io

Requirements.

Python 3.10+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import parlo_sdk

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import parlo_sdk

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import parlo_sdk
from parlo_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.getparlo.io/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = parlo_sdk.Configuration(
    host = "https://api.getparlo.io/v1"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization: bearerAuth
configuration = parlo_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with parlo_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = parlo_sdk.DomainsApi(api_client)
    create_domain_request = {"name":"yourdomain.com"} # CreateDomainRequest | 

    try:
        # Add a sending domain
        api_response = api_instance.create_domain(create_domain_request)
        print("The response of DomainsApi->create_domain:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling DomainsApi->create_domain: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.getparlo.io/v1

Class Method HTTP request Description
DomainsApi create_domain POST /domains Add a sending domain
DomainsApi delete_domain DELETE /domains/{id} Remove a domain
DomainsApi get_domain GET /domains/{id} Retrieve a domain
DomainsApi list_domains GET /domains List sending domains
DomainsApi verify_domain POST /domains/{id}/verify Re-check a domain's DNS
EmailsApi get_email GET /emails/{id} Retrieve an email
EmailsApi send_email POST /emails Send a transactional email

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

bearerAuth

  • Type: Bearer authentication

Author

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

parlo_sdk-1.0.0.tar.gz (34.6 kB view details)

Uploaded Source

Built Distribution

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

parlo_sdk-1.0.0-py3-none-any.whl (55.8 kB view details)

Uploaded Python 3

File details

Details for the file parlo_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: parlo_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 34.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for parlo_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 da3049a8e77900397324ef0994f3b01f17daa1bed32af5db7c80f3c98945b62c
MD5 b9eed18ce0d69d5c2d2dd57ee1776e95
BLAKE2b-256 f233d82ddf5e8c4adc6186eafd3d55cdb406543a3f07bb5fb12d5d68709cc0ce

See more details on using hashes here.

File details

Details for the file parlo_sdk-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: parlo_sdk-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 55.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for parlo_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 957a3aecd6d7f4a50cf97eb3d2e847b5e35cb752a09c01961d019f85630bbddb
MD5 673cc98138ae51b60da60fc27c4968e2
BLAKE2b-256 de6e1473dfbaaccfa3e35697b94ea35694a437ca0825e3010d1aea3d6cee233f

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