with GPTZero: Detect AI and HackerOne?
This endpoint takes in file(s) input and returns the model's result. See the documentation
This endpoint takes in a single text input and runs AI detection. The document will be truncated to 50,000 characters. See the documentation
Invite a recipient to an organization using their email address. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
gptzero_detect_ai: {
type: "app",
app: "gptzero_detect_ai",
}
},
async run({steps, $}) {
const data = {
"document": `Pipedream is the fastest way to automate any process that connects APIs. Build and run workflows with code-level control when you need it, and no code when you don't.`,
"multilingual": `false`,
}
return await axios($, {
method: "post",
url: `https://api.gptzero.me/v2/predict/text`,
headers: {
"Accept": `application/json`,
"Content-Type": `application/json`,
"x-api-key": `${this.gptzero_detect_ai.$auth.api_key}`,
},
data,
})
},
})
The HackerOne API enables automated interactions with the HackerOne platform, facilitating the management of vulnerability coordination and bug bounty programs. Through this API, users can programmatically access their reports, manage vulnerabilities, and streamline communications with researchers. When used within Pipedream, you can leverage these functionalities to automate workflows, integrate with other services like Slack, GitHub, and Jira, and enhance your security operations by ensuring timely responses and updates.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
hackerone: {
type: "app",
app: "hackerone",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.hackerone.com/v1/me/organizations`,
headers: {
"Accept": `application/json`,
},
auth: {
username: `${this.hackerone.$auth.api_token_identifier}`,
password: `${this.hackerone.$auth.api_token}`,
},
})
},
})