Skip to main content

LOTAME API Wrapper

Project description

Build Status

Lotame API Wrapper

Wrapper Class for Lotame API.

Fully unit tested wrapper class for Lotame REST API.

Requirements

  • Python 3.6 (tested)

Goal

To provide a generic wrapper Lotame API

Code sample

Instantiate
from lotame.lotame import Lotame
l = Lotame(username='xxxx', password='yyyy')
Search audiences
audiences = l.get('audiences/search', searchTerm='Age - ').json()['Audience']
Get behavior 3333
behavior = l.get('behaviors/{}'.format(3333)).json()
Create audience segment with 3 behaviors.
audience_definition = l.get_create_audience_json(
    'Lotame api test 5',
    2215, [[6322283, 6322292], [6322283, 6322292]],
    'Testing out Lotame API 5')
post_response_json = l.post('audiences', audience_definition).json()
print(post_response_json)
Create audience segment with 3 behaviors for (My Profile)
audience_definition = l.get_create_audience_json(
    'Lotame api test 5',
    2215, [[6322283, 6322292, 1111760, 6322303], [6322283, 6322292, 1111760, 6322303]],
    'Testing out Lotame API 5', overlap=True)

Contributors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lotame-1.0.3.tar.gz (4.6 kB view details)

Uploaded Source

File details

Details for the file lotame-1.0.3.tar.gz.

File metadata

  • Download URL: lotame-1.0.3.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for lotame-1.0.3.tar.gz
Algorithm Hash digest
SHA256 2aa6b765eade3cfafc2f5e4e2df66b7bf42957575dba62c2cb930e7505ddc604
MD5 4acb3fd1e692fc7237b3c20a4ed54d6c
BLAKE2b-256 cd27c6e7bdd4d172f2bf952637460cb068513afa164bd928b2fcdcbc97de87fc

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page