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`.
## 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for responsys-0.2.2b1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d593c7b396e27b3763caa2ffba22f6f2a04ce27e5c375f77f73ea3b1e2efe6e2 |
|
MD5 | 0a6145943d124e80baa496071b7a4490 |
|
BLAKE2b-256 | 3ea1633bb6e81fda4b383f9c729d998b77f97c36f176dac1f1ad66ecfaa21548 |