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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a06d541d7eb737a07580e914170dd4d5e7104b70ca0bdc154f9290dcfa7e2923 |
|
MD5 | 515c8cf5617dfe395541b2078b6bfa2b |
|
BLAKE2b-256 | cf5c060b2728a9be9bbfc26c27d42d8f617cf3a6c8bbb960386609e29a743929 |
Close
Hashes for listrak_api_wrapper-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee0423f33f8a2b18085700ee4802bafc475f1d5b343f76f7020abc04a2b22d00 |
|
MD5 | 69ad20bf027e572dfad5131d5a403eba |
|
BLAKE2b-256 | 7330d7c79951a9b0ca1a13a58716f67bc03aacd4f1deb91a08f1931533e22eff |