Skip to main content

intuit@1.0.4

This adaptor exports the following namespaced functions:

http.get(path, [options])
http.post(path, data, [options])

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

ParamTypeDefaultDescription
pathstringPath to resource
[options]IntuitOptions{}An object containing query and headers for the request

This operation writes the following keys to state:

State KeyDescription
dataThe response body (as JSON)
responseThe HTTP response from the Quickbook(intuit) server (excluding the body)
referencesAn 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

ParamTypeDefaultDescription
pathstringPath to resource
dataobjectThe request body (as JSON)
[options]IntuitOptions{}An object containing query, and headers for the request

This operation writes the following keys to state:

State KeyDescription
dataThe response body (as JSON)
responseThe HTTP response from the Quickbook(intuit) server (excluding the body)
referencesAn 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

NameTypeDefaultDescription
queryobjectAn object of query parameters to be encoded into the URL
headersobjectAn object of all request headers
[parseAs]string"'json'"The response format to parse (e.g., 'json', 'text', or 'stream')