with HumanLayer and Logo.dev?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
humanlayer: {
type: "app",
app: "humanlayer",
}
},
async run({steps, $}) {
const data = {
"run_id": "run_120", //adjust your run and call ids
"call_id": "call_640",
"spec": {
"msg": "Can someone approve this small typo fix PR? Just stumbled upon those while testing other stuff?",
"subject": "Small PR fix",
"channel": {
"email": {
"address": "superman@pd.com",
"subject": "Small PR fix",
"in_reply_to": "msg_790"
}
}
}
}
return await axios($, {
method: "post",
url: `https://api.humanlayer.dev/humanlayer/v1/human_contacts`,
headers: {
Authorization: `Bearer ${this.humanlayer.$auth.api_key}`,
"content-type": `application/json`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
logo_dev: {
type: "app",
app: "logo_dev",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.logo.dev/search`,
headers: {
Authorization: `Bearer ${this.logo_dev.$auth.secret_key}`,
},
params: {
"q": `Funko`,
},
})
},
})