with New Sloth and VLM Run?
The New Sloth API offers data on slow-moving trends and behaviors, useful for analytics in various domains such as marketing, finance, and social media. Within Pipedream, you can use this API to automate the collection and analysis of trend data, create custom alerts, and integrate with other apps for enhanced decision-making processes.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
new_sloth: {
type: "app",
app: "new_sloth",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.newsloth.com/api/v1/sources`,
auth: {
username: `${this.new_sloth.$auth.api_key}`,
password: `${this.new_sloth.$auth.api_secret}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
vlm_run: {
type: "app",
app: "vlm_run",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.vlm.run/v1/openai/models`,
headers: {
Authorization: `Bearer ${this.vlm_run.$auth.api_key}`,
},
})
},
})