import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
cloud_66: {
type: "app",
app: "cloud_66",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.cloud66.com/api/3/stacks.json`,
headers: {
Authorization: `Bearer ${this.cloud_66.$auth.oauth_access_token}`,
},
})
},
})
Cloud 66 uses OAuth authentication. When you connect your Cloud 66 account, Pipedream will open a popup window where you can sign into Cloud 66 and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Cloud 66 API.
Pipedream requests the following authorization scopes when you connect your account:
GETttps://app.cloud66.com/oauth/authorize?client_id={{oauth.client_id}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=codePOSThttps://app.cloud66.com/oauth/tokencontent-type: application/x-www-form-urlencodedaccept: application/jsonclient_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}