Skip to main content

PersistIQ Python API Wrapper

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

Release history Release notifications | RSS feed

This release

0.0.2 This release

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page