Python API wrapper for the Listrak API
Project description
listrak-api-wrapper
This is a wrapper for the Listrak API. This wrapper is meant to be used with the Listrak /email API
Note: This is a work in progress, not all endpoints are functional at the moment. Please see bottom of page for details.
Installation Instructions
Install Requirements (If Necessary)
- The "requests" library is required to use this package.
pip install requests
Install Library
pip install listrak-api-wrapper
Usage Instructions
Create a Client
Note: This example assumes the LISTRAK_CLIENT_ID and LISTRAK_CLIENT_SECRET API credentials are saved as environment variables.
import os
from listrak import listrak
# Create listrak_api obj that will be used to authenticate with Listrak API
client_id = os.getenv("LISTRAK_CLIENT_ID")
client_secret = os.getenv("LISTRAK_CLIENT_SECRET")
listrak_api = listrak.Listrak(client_id, client_secret)
Example showing how to get all lists associated with your account.
lists = listrak_api.uri_list.get_all_lists()
Working
- CONTACT
- LIST
- LISTIMPORT
- SEGMENTATIONFIELD
- SEGMENTATIONFIELDGROUP
Planned
- CAMPAIGN (N/A)
- CONVERSATION (N/A)
- CONVERSATIONMESSAGE (N/A)
- CONVERSATIONMESSAGEACTIVITY (N/A)
- CONVERSATIONMESSAGELINK (N/A)
- CONVERSATIONMESSAGELINKCLICKER (N/A)
- CONVERSATIONMESSAGESUMMARY (N/A)
- CONVERSATIONSUMMARY (N/A)
- EVENT (N/A)
- EVENTGROUP (N/A)
- FOLDER (N/A)
- IPPOOL (N/A)
- LISTIMPORTCONTACT (N/A)
- LISTIMPORTSTATUS (N/A)
- LISTIMPORTSUMMARY (N/A)
- MESSAGE (N/A)
- MESSAGEACTIVITY (N/A)
- MESSAGELINK (N/A)
- MESSAGELINKCLICKER (N/A)
- MESSAGESTATUS (N/A)
- MESSAGESUMMARY (N/A)
- SAVEDAUDIENCE (N/A)
- SAVEDMESSAGE (N/A)
- TRANSACTIONALMESSAGE (N/A)
- TRANSACTIONALMESSAGEACTIVITY (N/A)
- TRANSACTIONALMESSAGERESEND (N/A)
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
Built Distribution
Close
Hashes for listrak-api-wrapper-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | daf69180ea3b69f2fbd764788c3de27c0b8acef425450280d1136cc32bd0e823 |
|
MD5 | 8e8a36abebb2930c04ef0616735b7031 |
|
BLAKE2b-256 | 1c5bea7a4dec5ed4ae5b27de304f2257f9f24d7b23f5035c0b6ea23dc23d63c8 |
Close
Hashes for listrak_api_wrapper-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 431488df0e43ec16510df41253c0c7ed6443a7e0c2486cbe65a20f4f15a01e02 |
|
MD5 | 7701be630222c68c303e7fbd637f97e3 |
|
BLAKE2b-256 | ba1db4f580d251bbdb06d471dba48163602456d77df1015bfde2886e00dae5c1 |