auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps, auths) => {
}
this.headers = {
Authorization: `Bearer ${auths.zoho_books.oauth_access_token}`
}
this.body = JSON.parse(`{"customer_id":"2392161000000077001","line_items":[{"item_id":"2392161000000075001","quantity":1,"item_total":120}]}`);
Http method to use in the request.
A path relative to Zoho Books to send the request against.
Headers to send in the request.
async
(params, auths) => {
}
// See the API docs: https://www.zoho.com/books/api/v3/#introduction
params.query_string = params.query_string || ''
return await require("@pipedreamhq/platform").axios(this, {
method: params.request_method,
url: `https://books.${auths.zoho_books.base_api_uri}/api/v3/${params.relative_url}${params.query_string}`,
headers: params.headers,
data : params.request_body
})