with Riku.AI and Pro Ledger?
Create a new record in the Pro Ledger platform. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
riku_ai: {
type: "app",
app: "riku_ai",
}
},
async run({steps, $}) {
const data = {
"Name": `YOUR NAME`,
"Secret": `${this.riku_ai.$auth.secret_key}`,
"Prompt ID": `YOUR PROMPT`,
"Input 1": `SaaS`,
"n": `1`,
}
return await axios($, {
method: "post",
url: `https://prompts.riku.ai/webhook/run`,
headers: {
"Content-Type": `application/json`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
pro_ledger: {
type: "app",
app: "pro_ledger",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.pro-ledger.com/api/v1/auth/check_api_key`,
headers: {
"X-API-Key": `${this.pro_ledger.$auth.api_key}`,
},
})
},
})