with Screenshot API and Kudosity?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
screenshot_api: {
type: "app",
app: "screenshot_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://shot.screenshotapi.net/v3/screenshot`,
params: {
token: `${this.screenshot_api.$auth.api_key}`,
url: `https://google.com`,
output: `JSON`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
kudosity: {
type: "app",
app: "kudosity",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.transmitsms.com/get-balance.json`,
auth: {
username: `${this.kudosity.$auth.api_key}`,
password: `${this.kudosity.$auth.api_secret}`,
},
})
},
})