intuit@1.0.0
This adaptor exports the following namespaced functions:
This adaptor exports the following from common:
- cursor()
- dataPath()
- dataValue()
- dateFns
- each()
- field()
- fields()
- fn()
- lastReferenceValue()
- merge()
- sourceValue()
http
These functions belong to the http namespace.
http.get
get(path, [options]) ⇒ Operation
Make a GET request to any intuit endpoint
Param | Type | Default | Description |
---|---|---|---|
path | string | Path to resource | |
[options] | IntuitOptions | {} | An object containing query and headers for the request |
This operation writes the following keys to state:
State Key | Description |
---|---|
data | The response body (as JSON) |
response | The HTTP response from the Quickbook(intuit) server (excluding the body) |
references | An array of all previous data objects used in the Job |
Example: Get intuit user company information.
http.get("/v3/company/9341453908059456/companyinfo/9341453908059456");
http.post
post(path, data, [options]) ⇒ Operation
Make a POST request to any Intuit endpoint
Param | Type | Default | Description |
---|---|---|---|
path | string | Path to resource | |
data | object | The request body (as JSON) | |
[options] | IntuitOptions | {} | An object containing query, and headers for the request |
This operation writes the following keys to state:
State Key | Description |
---|---|
data | The response body (as JSON) |
response | The HTTP response from the Quickbook(intuit) server (excluding the body) |
references | An array of all previous data objects used in the Job |
Example: Create an account on intuit.
http.post("/v3/company/9341453908059456/account",
{
"Name": "MyJobs_testing",
"AccountType": "Accounts Receivable"
},
{
query: {
minorversion: 40,
},
})
Interfaces
IntuitOptions
Options object
Properties
Name | Type | Default | Description |
---|---|---|---|
query | object | An object of query parameters to be encoded into the URL | |
headers | object | An object of all request headers | |
[parseAs] | string | "'json'" | The response format to parse (e.g., 'json', 'text', or 'stream') |
IntuitState
State object
Properties
Name | Description |
---|---|
data | The response body (as JSON) |
response | The HTTP response from the Quickbook(intuit) server (excluding the body) |
references | An array of all previous data objects used in the Job |