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```
## Legal ##
This code is neither officially supported nor endorsed by Oracle, Responsys, or any related entites.
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```
## Legal ##
This code is neither officially supported nor endorsed by Oracle, Responsys, or any related entites.
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
responsys-0.1.1-alpha.tar.gz
(8.1 kB
view details)
File details
Details for the file responsys-0.1.1-alpha.tar.gz.
File metadata
- Download URL: responsys-0.1.1-alpha.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17cab1b32d1eb38b0b8660ab9cceb4398c34aba1dadcb98546e7be7da2d66bf5
|
|
| MD5 |
649f60844c9e0405f6e6222c7c825b8a
|
|
| BLAKE2b-256 |
25be15018b25e2369a0dba687c063ea1b378319aff87292b39fa4451024ab66a
|