This library allows you to quickly and easily use the Optimove Web API v3 via Python


License
MIT
Install
pip install optimove==2.0.0

Documentation

Optimove

PyPI version Travis CI Coveralls

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 – Returns a list of customers and the details associated with a particular one-time campaign (i.e., via a manually-imported customer list)
  • SendTransactionalMail – Sends a transactional email to a list of recipients
  • GetTransactionalTemplateMetrics – Returns post-execution metrics for a specific transactional mail template over time
  • GetTransactionalUserMetrics – Returns post-execution transactional email metrics for a specific recipient
  • GetCustomerProductsByCampaign - Returns an array of customer IDs and recommended Product IDs for each customer targeted by a particular product recommendation campaign
  • 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 – 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