import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
zerys: {
type: "app",
app: "zerys",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.zerys.com/v1/content/getcontent`,
headers: {
Authorization: `Bearer ${this.zerys.$auth.oauth_access_token}`,
"Title_id": ``,
},
})
},
})
Zerys uses OAuth authentication. When you connect your Zerys account, Pipedream will open a popup window where you can sign into Zerys and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Zerys API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://api.zerys.com/token
?
UserName={{custom_fields.username}}
&
Password={{custom_fields.api_key}}
&
grant_type=password