with Dandelion and Syntage?
The Dandelion API is a text analysis toolkit that allows for understanding and extracting information from texts in various languages. On Pipedream, you can leverage this API to automate workflows that involve natural language processing tasks like sentiment analysis, entity recognition, and language detection. These capabilities enable developers to create applications that can interpret user input, analyze social media sentiment, categorize content, and more, all within a serverless platform.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
dandelion: {
type: "app",
app: "dandelion",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.dandelion.eu/datagraph/wikisearch/v1`,
params: {
text: `brightroll`,
lang: `en`,
token: `${this.dandelion.$auth.token}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
satws: {
type: "app",
app: "satws",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.syntage.com/credentials`,
headers: {
"x-api-key": `${this.satws.$auth.api_key}`,
"accept": `application/ld+json`,
},
})
},
})