Skip to main content

An Unbounce API wrapper written in python.

Project description

Unbounce API

A Unbounce API wrapper written in Python.

Getting Started

Find more information on authorization, managing API keys, using OAuth, permissions, rate limits, errors, and more on Unbounce's API webpage.

To get started run pip install unbounce-python-api

from unbounceapi.client import Unbounce
ub = Unbounce('YOUR_API_KEY')

Global API

Read the docs here: Global API.

Available Methods

  • ub.get_global()

Accounts

Read the docs here: Accounts API.

Available Methods

  • ub.accounts.get_accounts(account_id=None, **kwargs)

    • account_id (optional)
    • sort_order (optional) [Default: 'asc', Options: 'asc' or 'desc']
  • ub.accounts.get_sub_accounts(account_id, **kwargs)

    • accounts_id (required)
    • sort_order (optional) [Default: 'asc', Options: 'asc' or 'desc']
    • count (optional) [Default: 'False', Options: 'True' or 'False']
    • from (optional) [ex: '2018-01-01']
    • to (optional) [ex: '2018-12-31']
    • offset (optional) [ex: '3']
    • limit (optional) [Default: '50', Max: '1000', ex: '10']
  • ub.accounts.get_account_pages(account_id, **kwargs)

    • account_id (required)
    • sort_order (optional) [Default: 'asc', Options: 'asc' or 'desc']
    • count (optional) [Default: 'False', Options: 'True' or 'False']
    • from (optional) [ex: '2018-01-01']
    • to (optional) [ex: '2018-12-31']
    • offset (optional) [ex: '3']
    • limit (optional) [Default: '50', Max: '1000', ex: '10']

Sub Accounts

Read the docs here: Sub Accounts API.

Available Methods

  • ub.sub_accounts.get_sub_account(sub_account_id)

    • sub_account_id (required)
  • ub.sub_accounts.get_sub_account_domains(sub_account_id, **kwargs)

    • sub_account_id (required)
    • sort_order (optional) [Default: 'asc', Options: 'asc' or ' desc']
    • count (optional) [Default: 'False', Options: 'True' or 'False']
    • from (optional) [ex: '2018-01-01']
    • to (optional) [ex: '2018-12-31']
    • offset (optional) [ex: '3']
    • limit (optional) [Default: '50', Max: '1000', ex: '10']
  • ub.sub_accounts.get_sub_account_page_groups(sub_account_id, **kwargs)

    • sub_account_id (required)
    • sort_order (optional) [Default: 'asc', Options: 'asc' or 'desc']
    • count (optional) [Default: 'False', Options: 'True' or 'False']
    • from (optional) [ex: '2018-01-01']
    • to (optional) [ex: '2019-12-31']
    • offset (optional) [ex: '3']
    • limit (optional) [Default: '50', Max: '1000', ex: '10']
  • ub.sub_accounts.get_sub_accounts_pages(sub_account_id, **kwargs)

    • sub_account_id (required)
    • sort_order (optional) [Default: 'asc', Options: 'asc' or 'desc']
    • count (optional) [Default: 'False', Options: 'True' or 'False']
    • from (optional) [ex: '2018-01-01']
    • to (optional) [ex: '2018-12-31']
    • offset (optional) [ex: '3']
    • limit (optional) [Default: '50', Max: '1000', ex: '10']

Domains

Read the docs here: Domains API.

Available Methods

  • ub.domains.get_domain(domain_id)

    • domain_id (required)
  • ub.domains.get_domain_pages(domain_id, kwargs**)

    • domain_id (required)
    • sort_order (optional) [Default: 'asc', Options: 'asc' or 'desc']
    • count (optional) [Default: 'False', Options: 'True or 'False']
    • from (optional) [ex: '2018-01-01']
    • to (optional) [ex: '2018-12-31']
    • offset (optional) [ex: '3']
    • limit (optional) [Default: '50', Max: '1000', ex: '10']

Pages

Read the docs here: Pages API.

Available Methods

  • ub.pages.get_pages(page_id=None, **kwargs)

    • page_id (optional)
    • sort_order (optional) [Default: 'asc', Options: 'asc' or 'desc']
    • count (optional) [Default: 'False', Options: 'True' or 'False']
    • from (optional) [ex: '2018-01-01']
    • to (optional) [ex: '2018-12-31']
    • offset (optional) [ex: '3']
    • limit (optional) [Default: '50', Max: '1000', ex: '10']
    • with_stats (optional) [Default: 'False', Options: 'True' or 'False']
    • role (optional) [Default: 'author', Options: 'author' or 'viewer']
  • ub.pages.get_form_fields(page_id, **kwargs)

    • page_id (required)
    • sort_order (optional) [Default: 'asc', Options: 'asc' or 'desc']
    • count (optional) [Default: 'False', Options: 'True' or 'False']
    • include_sub_pages [Default: 'False', Options: 'True' or 'False']
  • ub.pages.get_page_leads(page_id, lead_id=None, **kwargs)

    • page_id (required)
    • lead_id (optional)
    • sort_order (optional) [Default: 'asc', Options: 'asc' or 'desc']
    • count (optional) [Default: 'False', Options: 'True' or 'False']
    • from (optonal) [ex: '2018-01-01']
    • to (optional) [ex: '2018-12-31']
    • offset (optional) [ex: '3']
    • limit (optional) [Default: '50', Max: '1000', ex: '10']
  • ub.pages.create_page_lead(page_id)

    • page_id (required)
  • ub.pages.delete_page_lead(page_id, lead_id)

    • page_id (required)
    • lead_id (required)
  • ub.pages.post_lead_deletion_request(page_id)

    • page_id (required)
  • ub.pages.get_lead_deletion_request_status(page_id, lead_deletion_request_id)

    • page_id (required)
    • lead_deletion_request_id (required)

Page Groups

Read the docs here: Page Groups API.

Available Methods

  • ub.page_groups.get_page_group_pages(page_group_id, **kwargs)
    • page_group_id (required)
    • sort_order (optional) [Default: 'asc', Options: 'asc' or 'desc']
    • count (optional) [Default: 'False', Options: 'True' or 'False']
    • from (optional) [ex: '2018-01-01']
    • to (optional) [ex: '2018-12-31']
    • offset (optional) [ex: '3']
    • limit (optional) [Default: '50', Max: '1000', Ex: '10']

Leads

Read the docs here: Leads API.

Available Methods

  • ub.leads.get_lead(lead_id)
    • lead_id (required)

Users

Read the docs here: Users API.

  • ub.user.get_user(user_id=None)
    • user_id (optional)

Contributors

  • Yoshio Hasegawa

Support / Feedback / Bugs

For support, feedback or, if you've found a bug you may contact the primary contributor here: Yoshio Hasegawa.

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

unbounce-python-api-1.1.4.tar.gz (8.3 kB view details)

Uploaded Source

File details

Details for the file unbounce-python-api-1.1.4.tar.gz.

File metadata

  • Download URL: unbounce-python-api-1.1.4.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.28.1 CPython/3.7.1

File hashes

Hashes for unbounce-python-api-1.1.4.tar.gz
Algorithm Hash digest
SHA256 d15b6f35d38fd2676fbe87f19493615d5962b1ce723a0be1f24c8f552ba8b62a
MD5 cdfa2f119edd967c92aa0bf10f1b8d9a
BLAKE2b-256 dcab4db7d695ec3e05ba815e81e635c7b53a2b0f7ec8a68014aa5890f4f90f0b

See more details on using hashes here.

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