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.0-alpha.tar.gz
(8.0 kB
view details)
File details
Details for the file responsys-0.1.0-alpha.tar.gz.
File metadata
- Download URL: responsys-0.1.0-alpha.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4adfcb61791199b44a3e5556d94bf9b0f108456e5ae6ce7b36047100fa628def
|
|
| MD5 |
9f278cff4fa0f7a16d911c9b48042ef8
|
|
| BLAKE2b-256 |
1bfea284977f2d7354438df16a7759abd2d1ee623f19f6424bf832574d02d1d8
|