Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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


Release history Release notifications

This version
History Node

0.0.2

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page