@@ -8,12 +8,12 @@ Unofficial Quickbase JSON API wrapper for python
88
99Makes life a little easier!
1010
11- ## Quickstart
11+ # Quickstart
1212
13- ### Installation
13+ ## Installation
1414To install, run ` pip install quickbase-json-api-client `
1515
16- ### Initialize Client
16+ ## Initialize Client
1717Use the following code to create and initialize a client object.
1818```
1919from quickbase_json.client import QuickbaseJSONClient # import client
@@ -24,7 +24,7 @@ client = QuickbaseJSONClient(realm="yourRealm", auth="userToken")
2424Where ` yourRealm ` is the name (subdomain) of your Quickbase Realm and ` userToken ` is the user token used to authenticate
2525with the realm.
2626
27- ### Query Records
27+ ## Query Records
2828Querying for records is one of the most useful features of the Quickbase JSON API. Querying records with QJAC can be done
2929using the following code
3030
@@ -33,16 +33,28 @@ using the following code
3333Where ` 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 `
3434is a quickbase [ query string] ( https://help.quickbase.com/api-guide/componentsquery.html ) .
3535
36- ### Response Objects
36+ ## Response Objects
3737
3838A ` QBResponse ` object is returned when querying records with QJAC. A ` QBResponse ` has several methods that make
39- handling returned data easier. Here are a few of the most useful ones:
39+ handling returned data easier. Here are a few of the most useful ones.
4040
41- ** denest()**
41+ ### Response Methods
42+
43+ - ** denest()**
4244
4345Denests the data. I.e. changes ` {'fid': {'value': 'actualValue'}} ` to ` {'fid': 'actualValue'} `
4446
45- ** orient(orient='records', key='3')**
47+ - ** orient(orient='records', key='3')**
4648
4749Orients the data. Currently, the only option is 'records'. This will orient the returned data into a "record like structure", i.e. changes
48- ` {'fid': 'actualValue', 'fid': 'actualValue'} ` to ` {'key': {etc: etc}} `
50+ ` {'fid': 'actualValue', 'fid': 'actualValue'} ` to ` {'key': {etc: etc}} `
51+
52+ - ** convert()**
53+
54+ Converts the data, based on fields and provided arguments. For example, calling ` convert('datetime') ` will convert all data with fields
55+ of the 'date time' type to python datetime objects. Other conversions are 'currency' and 'int'.
56+
57+ - ** round_ints()**
58+
59+ Rounds all float integers into whole number ints. i.e. converts ` 55.0 ` to ` 55 ` .
60+
0 commit comments