import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
agility_cms: {
type: "app",
app: "agility_cms",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.agility_cms.$auth.api_url}/${this.agility_cms.$auth.guid}/${this.agility_cms.$auth.api_type}/contentmodels`,
headers: {
"APIKey": `${this.agility_cms.$auth.api_key}`,
},
})
},
})
Retrieve content models for the Agility instance. See the documentation
Agility CMS uses API keys for authentication. When you connect your Agility CMS account, Pipedream securely stores the keys so you can easily authenticate to Agility CMS APIs in both code and no-code steps.
To retrieve your API Key, GUID, Website Name, and Security Key