Skip to main content

A simple python wrapper for the PersistIQ API

Project description

API docs

Installation

Git

pip install git+git://github.com:tizz98/persistiq.git@master

PyPi

Coming soon

Usage

Setup

  • Add PERSIST_IQ_API_KEY='xxxxxxxx' to your environment variables

    • bash: echo export PERSIST_IQ_API_KEY='xxxxxxxx' >> ~/.bashrc

    • zsh: echo export PERSIST_IQ_API_KEY='xxxxxxxx' >> ~/.zshrc

    • windows: ???

  • Open up a new terminal or:

    • bash: . ~/.bashrc

    • zsh: . ~/.zshrc

    • windows: ???

Resources

User

from persistiq import User

for user in User.list():
    print user.id, user.name

Lead

from persistiq import Lead

# NOTE:
# Leads will automatically be paginated
# to only get the first 100 without pagination set:
# >>> Lead.paginate = False

for lead in Lead.list():
    print lead.id, lead.data

Campaign

from persistiq import Campaign

# NOTE:
# Campaigns will automatically be paginated
# to only get the first 100 without pagination set:
# >>> Campaign.paginate = False

for campaign in Campaign.list():
    print campaign.id, campaign.name

Project details


Supported by

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