with Getty Images and Utopian Labs?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
getty_images: {
type: "app",
app: "getty_images",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.gettyimages.com/v3/products`,
headers: {
Authorization: `Bearer ${this.getty_images.$auth.oauth_access_token}`,
"accept": `application/json`,
"api-key": `${this.getty_images.$auth.api_key}`,
},
})
},
})
import { UtopianLabs } from "utopianlabs";
export default defineComponent({
props: {
utopian_labs: {
type: "app",
app: "utopian_labs",
}
},
async run({ steps, $ }) {
const utopianLabs = new UtopianLabs({ apiKey: this.utopian_labs.$auth.api_key });
return await utopianLabs.agents.runs.create({
agent: "r1",
lead: {
company: {
website: "https://pipedream.com",
},
},
});
},
})