with Chattermill and WbizTool?
Emit new event when a new response is created. See the documentation
Create response model with given attributes. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
chattermill: {
type: "app",
app: "chattermill",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.chattermill.com/v1/projects`,
headers: {
Authorization: `Bearer ${this.chattermill.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
wbiztool: {
type: "app",
app: "wbiztool",
}
},
async run({steps, $}) {
const data = {
"client_id": `${this.wbiztool.$auth.api_client_id}`,
"api_key": `${this.wbiztool.$auth.api_key}`,
}
return await axios($, {
method: "post",
url: `https://wbiztool.com/api/v1/me/`,
data,
})
},
})