with GoTo Meeting and test_apps_for_switching_appslug_025?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
goto_meeting: {
type: "app",
app: "goto_meeting",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.getgo.com/identity/v1/Users/me`,
headers: {
Authorization: `Bearer ${this.goto_meeting.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
test_apps_for_switching_appslug_025: {
type: "app",
app: "test_apps_for_switching_appslug_025",
}
},
async run({steps, $}) {
const data = {
"id": `${this.test_apps_for_switching_appslug_025.$auth.id}`,
"key": `${this.test_apps_for_switching_appslug_025.$auth.api_key}`,
}
return await axios($, {
method: "post",
url: `https://api.avosms.com/v1/account/balance`,
headers: {
"content-type": `application/x-www-form-urlencoded`,
},
data,
})
},
})