import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
testrail: {
type: "app",
app: "testrail",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.testrail.$auth.api_url}/index.php?/api/v2/get_users`,
headers: {
"accept": `application/json`,
},
auth: {
username: `${this.testrail.$auth.username}`,
password: `${this.testrail.$auth.api_key}`,
},
})
},
})
TestRail uses API keys for authentication. When you connect your TestRail account, Pipedream securely stores the keys so you can easily authenticate to TestRail APIs in both code and no-code steps.