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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9d40780e1b6d04ae700b205b903d46aae19b8f56b610fd4e869efccb579f182 |
|
MD5 | d8f48bb58d8dbd47fabeb07ca01aac40 |
|
BLAKE2b-256 | a2624e475840bc33155a5cd12cc201d48bbc70fbef56c2cb6ac89b15b9aa0ba8 |
Close
Hashes for listrak_api_wrapper-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6abd0513599864deb97ff864f2baab79cb16e6bc3845713c55caee77d0d3e7a8 |
|
MD5 | 0025a64de0b24af1a74755e2fba064c0 |
|
BLAKE2b-256 | be4ea39f428bfd52cd52fe1a6b65bdc35141b6b284183e91c336a6ef6e1dfaae |