with Akeneo and Algolia?
Allows you to create a new media file and associate it to an attribute value of a given product or product model. See the docs
Adds an array of JavaScript objects to the given index. See docs here
The Akeneo API empowers users to streamline product information management by automating data exchange between Akeneo and other systems. By leveraging Pipedream, you can construct workflows that trigger actions based on events in Akeneo, sync product data across platforms, enhance product information with data from external sources, and keep sales channels up-to-date with the latest catalog details.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
akeneo: {
type: "app",
app: "akeneo",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.akeneo.$auth.host}/api/rest/v1`,
headers: {
Authorization: `Bearer ${this.akeneo.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})
Algolia is a powerful search-as-a-service platform that makes it easy to deliver fast, relevant search experiences to users. The Algolia API allows developers to programmatically manage search indices, perform searches, and capture insights about search activity. With Pipedream, you can harness this API to automate and integrate Algolia's capabilities with other apps, creating efficient workflows that enhance search functionalities and user engagement. You can sync data across platforms, automate content indexing, and trigger actions based on search patterns or user behaviors.
import { algoliasearch } from 'algoliasearch';
export default defineComponent({
props: {
algolia: {
type: "app",
app: "algolia",
}
},
async run({steps, $}) {
const client = algoliasearch(this.algolia.$auth.application_id, this.algolia.$auth.api_key);
return await client.listIndices()
},
})