Skip to content

Simple python SDK for Lotame API?

License

Notifications You must be signed in to change notification settings

bkmurchison/lotame

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lotame API Wrapper

Requirements

  • Python 3.8

Installation

    pip install lotame

Goal

To provide a generic wrapper Lotame API?

Code sample

from lotame.api import Api
from lotame.credentials import Credentials
from lotame.services.audience import AudienceService
from lotame.services.behavior import BehaviorService
from lotame.services.firehose import FirehoseService

# Getting api object:

api = Api(Credentials(client_id='xxx', token='yyy', access='zzz'))

# Using different service classes for different endpoints:

f = FirehoseService(api=api)
updates = f.get_updates(hours=1)

b = BehaviorService(api=api)
types = b.get('types')

a = AudienceService(api=api)
audiences = a.get('audience')

Contributors

About

Simple python SDK for Lotame API?

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Python 100.0%