auths
objectreturn
or this.key = 'value'
, pass input data to your code viaparams
, and maintain state across executions with$checkpoint.async
(event, steps) => {
}
this.graphql_query = {
query: `{
card(id: 397325159) {
title url comments{text} fields{name value}
}
}`
}
async
(params, auths) => {
}
/* See the API docs: https://api-docs.pipefy.com/reference/queries/#card
Example query:
{
card(id: 301498507) {
title url comments{text}
}
}
*/
if (!params.graphql_query) {
throw new Error("Must provide graphql_query parameter.");
}
return await require("@pipedreamhq/platform").axios(this, {
method: "post",
url: `https://api.pipefy.com/graphql`,
headers: {
Authorization: `Bearer ${auths.pipefy.token}`,
},
data: params.graphql_query
});