Skip to main content

Python client library for the Responsys Interact API

Project description

# Responsys Interact API python client #

A python library providing access to the Responsys Interact API.

## Install ##

Via pypi:

pip install responsys

Via source package:

cd responsys/ pip install .

## Usage ##

The [InteractClient](./responsys/client.py) provides the methods needed to work with the Interact API:

>>> from responsys.client import InteractClient
>>> client = InteractClient(username, password, pod)
>>> client.connect()
>>> client.merge_list_members(interact_object, records, merge_rules)
>>> client.disconnect()

Using the client class as a context manager will automatically connect using the credentials provided, and disconnect upon context exit:

>>> with InteractClient(username, password, pod) as client:
...     client.merge_list_members(interact_object, records, merge_rules)

Since responsys limits the number of active sessions per account, this can help ensure you don’t leave unused connections open.

## Development/Testing ##

Tests can be run via setuptools:

python setup.py nosetests

Installing requirements for development environment can be accomplished via pip:

pip install -r requirements.txt

Testing within a dev environment can be accomplished via `nosetests`. For convenience, this project also utilizes [testtube](https://github.com/thomasw/testtube). After creating the dev environment, simply run the `stir` command to have testtube run tests after changes to the project.

## Acknowledgements ##

This library was developed while working for the fine folks at [udemy.com](http://www.udemy.com/about).

## Legal ##

This code is neither officially supported nor endorsed by Udemy.com, Oracle, Responsys, or any related entites.

[License](./LICENSE)

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

responsys-0.1.5-alpha.tar.gz (16.4 kB view details)

Uploaded Source

File details

Details for the file responsys-0.1.5-alpha.tar.gz.

File metadata

File hashes

Hashes for responsys-0.1.5-alpha.tar.gz
Algorithm Hash digest
SHA256 68496fb600f3316e38a156f516881e8a0d74fe2f3f332ec65714d8a01e6fed01
MD5 5b3e38f1b094da2bf6d1aae62225a437
BLAKE2b-256 11f8098795bb8f7de379a8c514798f86f2877af16b0778a307d09963b1569618

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