Python wrapper for the Leanplum API.
NOTE This package is under development.
Implemented methods:
- start
- stop
- setUserAttributes
- track
- multi
- sendMessage
TODO (prod):
- advance
- pauseState
- resumeState
- setDeviceAttributes
- getVars
- heartbeat
- pauseSession
- resumeSession
- setTrafficSourceInfo
- downloadFile
TODO (dev):
- registerDevice
- multi (import mode)
- getMultiResults
- setVars
- uploadFile
TODO: Data export methods
TODO: Content read-only methods
TODO: Handle limit and other errors
Initial setup:
make
make test
- Create a leanplum app if you haven't done so yet.
- Create
.env
in the project root. (This is gitignored.) - Add your app id and keys, and a message id in the following format:
export LEANPLUM_APP_ID="your app id here"
export LEANPLUM_PRODUCTION_CLIENT_KEY="your production key here"
export LEANPLUM_DEVELOPMENT_CLIENT_KEY="your development key here"
export LEANPLUM_TEST_MESSAGE_ID="a test message id from leanplum"
Now you can run:
make integration
make testall