Skip to main content

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

listrak-api-wrapper-0.1.5.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

listrak_api_wrapper-0.1.5-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page