with Weglot and Big Cartel?
Emit new events when a new order is created. See the docs here
Emit new events when a new product is created. See the docs here
The Weglot API allows for real-time translation of website content, simplifying the process of making a website multilingual. On Pipedream, you can use the Weglot API to craft workflows that automate translation tasks, manage language databases, or even synchronize content across different platforms. This API could be a game changer for businesses looking to globalize their online presence without the manual overhead.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
weglot: {
type: "app",
app: "weglot",
}
},
async run({steps, $}) {
const data = {
"l_from": `en`,
"l_to": `fr`,
"words": [
{"w":"This is a blue car", "t": 1},
{"w":"This is a black car", "t": 1}
],
"request_url": `https://www.test.com`,
}
return await axios($, {
method: "post",
url: `https://api.weglot.com/translate`,
headers: {
"Content-Type": `application/json`,
},
params: {
api_key: `${this.weglot.$auth.api_key}`,
},
data,
})
},
})
The Big Cartel API unlocks the power to automate and integrate your e-commerce operations, enabling you to seamlessly manage products, orders, and store settings. With Pipedream, you can harness this functionality within serverless workflows to trigger actions based on store events, sync data across platforms, or personalize customer interactions—all without the need for dedicated infrastructure.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
big_cartel: {
type: "app",
app: "big_cartel",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.bigcartel.com/v1/accounts`,
headers: {
Authorization: `Bearer ${this.big_cartel.$auth.oauth_access_token}`,
"Accept": `application/vnd.api+json`,
"Content-type": `application/vnd.api+json`,
},
})
},
})