Skip to content

lawsonboothe/mailgun.py

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python wrapper for MailGun REST API

Documentation:
=============

Please visit our documentation page at
http://documentation.mailgun.net


Installation
============

There are two ways to install Mailgun API:

1. sudo python setup.py install
2. Grab mailgun.py from the 'lib' folder of this repo and place it on your PYTHONPATH manually
3. easy_install mailgun


Samples tryout:
===================

> ./run_sample.sh samples/creating-routes.py
> ./run_sample.sh samples/sending-mail.py
> ./run_sample.sh samples/using-mailboxes.py


Getting started:
================

from mailgun import Mailgun, Mailbox

Mailgun.init("my-api-key", "https://mailgun.net/api")
for mailbox in Mailbox.find():
    print "{0} has size of {1}".format (mailbox.id, mailbox.size)


For more visit http://documentation.mailgun.net


--
MG team

About

Python wrapper for Mailgun API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.6%
  • Shell 0.4%