import { axios } from "@pipedream/platform";
export default defineComponent({
props: {
palatine_speech: {
type: "app",
app: "palatine_speech",
}
},
async run({steps, $}) {
const data = "<your text to summarize here>";
return await axios($, {
method: "post",
url: `https://api.palatine.ru/api/v1/ai_service/summarize_text`,
headers: {
Authorization: `Bearer ${this.palatine_speech.$auth.api_key}`,
"content-type": `text/plain`,
},
params: {
task: `meeting_summary`,
},
data,
})
},
})
Palatine Speech uses API keys for authentication. When you connect your Palatine Speech account, Pipedream securely stores the keys so you can easily authenticate to Palatine Speech APIs in both code and no-code steps.