PepipostAPIV10Lib

Official repository of the Pepipost SDK for Python


License
MIT
Install
pip install PepipostAPIV10Lib==0.1

Documentation

Pepipost Python SDK

This is the official Pepipost SDK for Python.

This SDK uses the Requests library and will work for Python 2.6 — 3.5.

INSTALLATION:

mkdir pepipost-sdk-python
cd pepipost-sdk-python
git clone https://github.com/pepipost/pepipost-sdk-python.git .
sudo pip install -r requirements.txt

USAGE:

Edit example.py, as per your requirements

from PepipostAPIV10Lib.Controllers.Email import *
import json

Email = Email()

#data = ()
data = { 
    'api_key' : 'yoursecretapikey',
    'recipients' : ['recipient1@example.com','recipient2@example.com'],
    'email_details' : { 
        'fromname' : 'sender name',
        'subject' : 'test email subject sent using Pepipost SDK - Python',
        'from' : 'from@example.com',
        'content' : '<p>This is a test email sent using Pepipost JSON/Email Python SDK</p>'
    }   
}

response = Email.send(data)

print response

Run the script

python example.py

AUTHOR

Tabby @ Pepipost Dev Team

This SDK was semi-automatically generated by APIMATIC v2.0. Thanks to APIMATIC