import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
speak_ai: {
type: "app",
app: "speak_ai",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.speakai.co/v1/admin/users`,
headers: {
"x-speakai-key": `${this.speak_ai.$auth.api_key}`,
"x-access-token": `${this.speak_ai.$auth.oauth_access_token}`,
},
})
},
})
Emit new event when a new media file is created. Useful for initiating workflows based on new media intake. See the documentation
Emit new event when a new text is analyzed. Useful for initiating workflows based on new text analysis. See the documentation
Analyzes a block of text for key insights, sentiment, and keyword extraction using Speak Ai's NLP engine. See the documentation
Retrieve the full transcription of a processed media file. See the documentation
Upload an audio or video file for transcription and natural language processing into Speak AI. See the documentation
Speak AI uses OAuth authentication. When you connect your Speak AI account, Pipedream will open a popup window where you can sign into Speak AI and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any Speak AI API.
Pipedream requests the following authorization scopes when you connect your account:
POST
https://api.speakai.co/v1/auth/accessToken
accept: application/json
x-speakai-key: {{custom_fields.api_key}}
POST
https://api.speakai.co/v1/auth/refreshToken
x-speakai-key: {{custom_fields.api_key}}
refreshToken={{custom_fields.refresh_token}}