Session

AuthenticateSession is a low level objects to send http request to MailUp, it’s perfect to check your configuration or try an unsupported endpoint.

This is probably the easiest way to connect with MailUp.

class djangomailup.AuthenticateSession(using='default')[source]

A requests authenticated Session.

Parameters:using (string) – name of MAILUP configuration (default: ‘default’)

Same of Session, with oAuth2 logic.

Usage:

>>> form djangomailup import AuthenticateSession
>>> s = AuthenticateSession()
>>> url = 'https://services.mailup.com/'
>>> s.get(url)
<Response [200]>

To use a different configuration use using argument:

...
>>> s = AuthenticateSession(using='myotherconfiguration')
...