Skip to main content

New Zealand Business Number library

Project description

New Zealand Business Number

A Python library for interacting with New Zealand Business Number services.

Installation

$ pip install nzbn

Example Usage

Get a list of abbreviated entities

from nzbn import AbbreviatedEntity

entities: List[AbbreciatedEntity] = AbbreviatedEntity.retrieve_many(
    access_token="your nzbn API access token",
    search_text="some entity name",
    page=0,    # defaults to 0
    limit=20   # per page count, defaults to 20
)

Get detailed data about an entity

from nzbn import Entity

entity: Entity = Entity.retrieve(
    access_token="your nzbn API access token",
    nzbn="9429049541410",
    sandbox=False  # defaults to False
)

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

nzbn-0.0.12.tar.gz (10.2 kB view hashes)

Uploaded Source

Built Distribution

nzbn-0.0.12-py3-none-any.whl (15.7 kB view hashes)

Uploaded Python 3

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