import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zoho_creator: {
type: "app",
app: "zoho_creator",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://creator.${this.zoho_creator.$auth.base_api_uri}/api/v2/applications`,
headers: {
"Authorization": `Zoho-oauthtoken ${this.zoho_creator.$auth.oauth_access_token}`,
},
})
},
})
export default defineComponent({
props: {
http: {
type: "http_request",
default: {
method: "GET",
url: "http://api.open-notify.org/iss-now.json",
}
}
},
async run({steps, $}) {
return await this.http.execute()
},
})