Package: unbounce-python-api
Unbounce APIAnUnbounce APIwrapper written in Python.Getting StartedFind more information on authorization, managing API keys, using OAuth, permissions, rate limits, errors, and more on theUnbounce API webpage. Find the project on the Python Package Index website here:unbounce-python-api.To get started, install the package:user@machine:~/$pipinstallunbounce-python-apiThen, import it into your project:fromunbounceapi.clientimportUnbounceub=Unbounce('YOUR_API_KEY')Global APIRead the docs here:Global API.Available Methodsub.get_global()AccountsRead the docs here:Accounts API.Available Methodsub.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-01T00:00:00.000Z']to (optional) [ex: '2018-12-31T00:00:00.000Z']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-01T00:00:00.000Z']to (optional) [ex: '2018-12-31T00:00:00.000Z']offset (optional) [ex: '3']limit (optional) [Default: '50', Max: '1000', ex: '10']Sub AccountsRead the docs here:Sub Accounts API.Available Methodsub.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-01T00:00:00.000Z']to (optional) [ex: '2018-12-31T00:00:00.000Z']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-01T00:00:00.000Z']to (optional) [ex: '2018-12-31T00:00:00.000Z']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-01T00:00:00.000Z']to (optional) [ex: '2018-12-31T00:00:00.000Z']offset (optional) [ex: '3']limit (optional) [Default: '50', Max: '1000', ex: '10']DomainsRead the docs here:Domains API.Available Methodsub.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-01T00:00:00.000Z']to (optional) [ex: '2018-12-31T00:00:00.000Z']offset (optional) [ex: '3']limit (optional) [Default: '50', Max: '1000', ex: '10']PagesRead the docs here:Pages API.Available Methodsub.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-01T00:00:00.000Z']to (optional) [ex: '2018-12-31T00:00:00.000Z']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 (optional) [ex: '2018-01-01T00:00:00.000Z']to (optional) [ex: '2018-12-31T00:00:00.000Z']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 GroupsRead the docs here:Page Groups API.Available Methodsub.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-01T00:00:00.000Z']to (optional) [ex: '2018-12-31T00:00:00.000Z']offset (optional) [ex: '3']limit (optional) [Default: '50', Max: '1000', Ex: '10']LeadsRead the docs here:Leads API.Available Methodsub.leads.get_lead(lead_id)lead_id (required)UsersRead the docs here:Users API.ub.users.get_user(user_id=None)user_id (optional)ContactFor support, feedback or, to report a bug, you may contact the maintainer:Yoshio Hasegawa:GitHub,LinkedInLicenseDistributed under the MIT License.