import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
yepcode: {
type: "app",
app: "yepcode",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://cloud.yepcode.io/api/${this.yepcode.$auth.team_id}/rest/processes`,
headers: {
Authorization: `Bearer ${this.yepcode.$auth.oauth_access_token}`,
"content-type": `application/json`,
},
})
},
})
YepCode uses OAuth authentication. When you connect your YepCode account, Pipedream will open a popup window where you can sign into YepCode and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any YepCode API.
Pipedream requests the following authorization scopes when you connect your account:
POSThttps://cloud.yepcode.io/auth/realms/yepcode/protocol/openid-connect/tokencontent-type: application/x-www-form-urlencodedaccept: application/jsonclient_id={{custom_fields.client_id}}&client_secret={{custom_fields.client_secret}}&grant_type=client_credentialsPOSThttps://cloud.yepcode.io/auth/realms/yepcode/protocol/openid-connect/tokencontent-type: application/x-www-form-urlencodedaccept: application/jsonclient_id={{custom_fields.client_id}}&client_secret={{custom_fields.client_secret}}&grant_type=client_credentials