with McTime and Akeneo?
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
The McTime API provides functionality for tracking and managing time-related data. With McTime integrated into Pipedream, you can automate processes involving employee scheduling, time tracking, and payroll. Leverage Pipedream's ability to connect with hundreds of apps to link time data with project management tools, accounting software, and communication platforms, streamlining workflow efficiencies and reducing manual timekeeping errors.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mctime: {
type: "app",
app: "mctime",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://mctime.com/api/v2/auth/users`,
headers: {
"API_KEY": `${this.mctime.$auth.api_key}`,
"Content-Type": `application/json`,
},
})
},
})
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`,
},
})
},
})