with Refiner and NEURONWriter?
Emit new event whenever a user enters a segment in Refiner. See the documentation
Emit new event whenever a user completes a survey in Refiner. See the documentation
Emit new event when a query is marked as 'done', indicating content is ready for publication.
Emit new event when a query is processed by NeuronWriter API and results are ready.
Identify a user with user ID or email. If the user does not exist, a new one will be created. See the documentation
Launches a new query based on provided keyword, search engine, and language. See the documentation
Pulls the most recent revision of the content saved for a specific query. See the documentation
Fetches the data related to a pre-defined query. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
refiner: {
type: "app",
app: "refiner",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.refiner.io/v1/account`,
headers: {
Authorization: `Bearer ${this.refiner.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
neuronwriter: {
type: "app",
app: "neuronwriter",
}
},
async run({steps, $}) {
const data = {
"project": `${this.neuronwriter.$auth.project_id}`,
}
return await axios($, {
method: "post",
url: `https://app.neuronwriter.com/neuron-api/0.5/writer/list-queries`,
headers: {
"X-API-KEY": `${this.neuronwriter.$auth.api_key}`,
},
data,
})
},
})