import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
gorgias: {
type: "app",
app: "gorgias",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.gorgias.$auth.domain}.gorgias.com/api/users/`,
auth: {
username: `${this.gorgias.$auth.email}`,
password: `${this.gorgias.$auth.api_key}`,
},
})
},
})
Gorgias uses API keys for authentication. When you connect your Gorgias account, Pipedream securely stores the keys so you can easily authenticate to Gorgias APIs in both code and no-code steps.
For Gorgias, the API keys are managed in In Settings > REST API, where Settings is "Your Profile" page inside the left bottom menu actually. Georgias is a developer friendly app, it has extensive documentation, including the API Key authentication mechanisms.