import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
click_sign: {
type: "app",
app: "click_sign",
}
},
async run({steps, $}) {
const data = {
"request": `GET_CONFIG_LIST`,
"user": `${this.click_sign.$auth.username}`,
}
return await axios($, {
method: "post",
url: `https://api.lleida.net/cs/v1/get_config_list`,
headers: {
"authorization": `x-api-key ${this.click_sign.$auth.api_key}`,
},
data,
})
},
})
Click & Sign uses API keys for authentication. When you connect your Click & Sign account, Pipedream securely stores the keys so you can easily authenticate to Click & Sign APIs in both code and no-code steps.