This library allows you to quickly and easily use the Optimove Web API v3 via Python
Project description
This library allows you to quickly and easily use the Optimove Web API via Python based on Optimove documentation
Installation
From Pypi
pip install optimove
From source
python setup.py install
Quick start
Create a new client
from optimove.client import Client
client = Client('username', 'password')
Or
from optimove.client import Client
client = Client()
client.general.login('username', 'password')
Test
Tests are available in tests/ folder.
The fixture used for the tests are from the documentation provided by Optimove.
python setup.py test
Usage
Roadmap
Missing features
[ ] Add missing pagination parameters / Refacto pagination parameters (maybe with a decorator)
[ ] Test pagination
[ ] Better authentication management
[ ] Auto-reconnect as soon as possible (based on expire value)
[ ] Use custom exceptions
[ ] Prepare compatibility with Python 3.4+
New API functions
[ ] [GetCustomerOneTimeActionsByCampaign](http://docs.optimove.com/api-usage-guide/#GetCustomerOneTimeActionsByCampaign) – Returns a list of customers and the details associated with a particular one-time campaign (i.e., via a manually-imported customer list)
[ ] [SendTransactionalMail](http://docs.optimove.com/api-usage-guide/#SendTransactionalMail) – Sends a transactional email to a list of recipients
[ ] [GetTransactionalTemplateMetrics](http://docs.optimove.com/api-usage-guide/#GetTransactionalTemplateMetrics) – Returns post-execution metrics for a specific transactional mail template over time
[ ] [GetTransactionalUserMetrics](http://docs.optimove.com/api-usage-guide/#GetTransactionalUserMetrics) – Returns post-execution transactional email metrics for a specific recipient
[ ] [GetCustomerProductsByCampaign](http://docs.optimove.com/api-usage-guide/#GetCustomerProductDetailsByCampaign) - Returns an array of customer IDs and recommended Product IDs for each customer targeted by a particular product recommendation campaign
[ ] [GetCustomerProductDetailsByDate](http://docs.optimove.com/api-usage-guide/#GetCustomerProductDetailsByDate) – Returns an array of customer IDs and recommended Product IDs for each customer targeted by any product recommendation campaign on a particular date
[ ] [GetCampaignInteractionCustomers](http://docs.optimove.com/api-usage-guide/#GetCampaignInteractionCustomers) – Returns an array of Customer IDs and the Campaign ID and Template ID for each customer who performed a particular interaction with a campaign that was delivered on a particular date via a particular channel
How to contribute
Troubleshooting
For any issue please create a new issue
About
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
File details
Details for the file optimove-2.0.0.tar.gz
.
File metadata
- Download URL: optimove-2.0.0.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 255167edb6742071a30439a620ba87967eb734d636c865b251b2af1e08c5272b |
|
MD5 | 80b912c5d19f8c3a8630e729702d29b3 |
|
BLAKE2b-256 | 72eb1f225255f9ad66ba99a800836d06efb0b8230a26d4360d4ca28b8383e0b5 |
File details
Details for the file optimove-2.0.0-py3-none-any.whl
.
File metadata
- Download URL: optimove-2.0.0-py3-none-any.whl
- Upload date:
- Size: 31.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 845dfe50829ed11170ada1254624cfe5ebfac3803b974e708d41cbe1fac01491 |
|
MD5 | 01f8659b1bd4ce688ff11fedc17aecf1 |
|
BLAKE2b-256 | f9b722830cdd6de8de946f2964f3ce785d2b343d53e4bc8565c21faeb5fa36a0 |