with ifthenpay and Swiftype?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ifthenpay: {
type: "app",
app: "ifthenpay",
}
},
async run({steps, $}) {
const data = {
"boKey": `${this.ifthenpay.$auth.backoffice_key}`,
"dateStart": `21-10-2024 00:00:00`,
"dateEnd": `30-04-2025 00:00:00`,
}
return await axios($, {
method: "post",
url: `https://api.ifthenpay.com/v2/payments/read`,
headers: {
"accept": `application/json`,
},
data,
})
},
})
The Swiftype API offers a potent toolset for adding search functionality to your websites and applications, allowing you to index and search your content. With Pipedream, you can build serverless workflows integrating Swiftype API to automate indexing, manage search engines, and react to search analytics. This can be a game-changer for content-driven sites, providing insights into user search behavior and automating updates to the search index.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
swiftype: {
type: "app",
app: "swiftype",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.swiftype.com/api/v1/engines.json`,
params: {
auth_token: `${this.swiftype.$auth.api_key}`,
},
})
},
})