Skip to main content

Python wrapper for quickbase JSON API.

Project description

quickbase-json-api-client

build size license

Unofficial Quickbase JSON API wrapper for python

Makes life a little easier!

Quickstart

Installation

To install, run pip install quickbase-json-api-client

Initialize Client

Use the following code to create and initialize a client object.

from quickbase_json.client import QuickbaseJSONClient # import client

client = QuickbaseJSONClient(realm="yourRealm", auth="userToken")

Where yourRealm is the name (subdomain) of your Quickbase Realm and userToken is the user token used to authenticate with the realm.

Query Records

Querying for records is one of the most useful features of the Quickbase JSON API. Querying records with QJAC can be done using the following code

response = client.query_records('tableId', fids, 'queryString')

Where tableId is the ID of the table you wish to query from, fids is a list of field IDs you wish to receive and queryString is a quickbase query string.

Response Objects

A QBResponse object is returned when querying records with QJAC. A QBResponse has several methods that make handling returned data easier. Here are a few of the most useful ones:

denest()

Denests the data. I.e. changes {'fid': {'value': 'actualValue'}} to {'fid': 'actualValue'}

orient(orient='records', key='3')

Orients the data. Currently, the only option is 'records'. This will orient the returned data into a "record like structure", i.e. changes {'fid': 'actualValue', 'fid': 'actualValue'} to {'key': {etc: etc}}

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

quickbase-json-api-client-0.0.4.tar.gz (8.5 kB view hashes)

Uploaded Source

Built Distribution

quickbase_json_api_client-0.0.4-py3-none-any.whl (8.8 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