with SendOwl and Needle?
Search a collection for relevant data chunks based on a query. See the documentation
The SendOwl API allows you to manage and automate sales and distribution of digital goods. Using Pipedream, you can harness the power of SendOwl to create tailored workflows that respond to events, synchronize customer data, generate reports, and enhance customer experiences. By leveraging Pipedream's capabilities, you can connect SendOwl to numerous other services for a seamless data flow, making processes efficient and reducing manual effort.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
sendowl: {
type: "app",
app: "sendowl",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://www.sendowl.com/api/v1/products`,
headers: {
"Accept": `application/json`,
"Content-Type": `application/json`,
},
auth: {
username: `${this.sendowl.$auth.api_key}`,
password: `${this.sendowl.$auth.api_secret}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
needle: {
type: "app",
app: "needle",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://needle-ai.com/api/v1/collections`,
headers: {
"accept": `application/json`,
"x-api-key": `${this.needle.$auth.api_key}`,
},
})
},
})