with Microsoft Azure AI Translator and Chimp Rewriter?
Identifies the positioning of sentence boundaries in a piece of text. See the documentation
Identifies the language of a piece of text. See the documentation
Translate text into the specified language. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
microsoft_azure_ai_translator: {
type: "app",
app: "microsoft_azure_ai_translator",
}
},
async run({steps, $}) {
return await axios($, {
url: `${this.microsoft_azure_ai_translator.$auth.endpoint}/languages`,
headers: {
"Ocp-Apim-Subscription-Key": `${this.microsoft_azure_ai_translator.$auth.api_key}`,
"Ocp-Apim-Subscription-Region": `${this.microsoft_azure_ai_translator.$auth.location}`,
"Content-Type": `application/json`,
},
params: {
"api-version": `3.0`
},
})
},
})
The Chimp Rewriter API allows you to leverage advanced article spinning and rewriting capabilities within your Pipedream workflows. With this API, you can automatically generate unique versions of text for content creation, SEO strategies, or any application where textual uniqueness is valuable. By integrating the Chimp Rewriter API in Pipedream, you can create automated processes that include content analysis, translation, and rephrasing, augmenting your content management and distribution systems.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
chimp_rewriter: {
type: "app",
app: "chimp_rewriter",
}
},
async run({steps, $}) {
const data = {
"email": `${this.chimp_rewriter.$auth.email}`,
"apikey": `${this.chimp_rewriter.$auth.api_key}`,
"aid": `${this.chimp_rewriter.$auth.app_id}`,
}
return await axios($, {
method: "post",
url: `https://api.chimprewriter.com/Statistics`,
headers: {
"content-type": `application/x-www-form-urlencoded`,
},
data,
})
},
})