Wix is an online platform that allows users to create and manage professional websites through drag-and-drop tools without needing to know how to code.
Emit new event when a new member is registered. See the documentation
Emit new event when a new product is created. See the documentation
Adds a product or products to a specified collection. See the documentation
Create a new document in a collection of your choice. See the docs here
The Wix API allows for the management and automation of various aspects of Wix-based web applications. Through Pipedream, you can harness this capability to create, update, retrieve, and delete information from your Wix site, such as managing site content, handling e-commerce orders, and engaging with users. With Pipedream, you can also trigger workflows based on events in Wix, connect with hundreds of other services, and process data with custom logic.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
wix_api_key: {
type: "app",
app: "wix_api_key",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://www.wixapis.com/site-list/v2/sites/query`,
headers: {
"Authorization": `${this.wix_api_key.$auth.api_key}`,
"wix-account-id": `${this.wix_api_key.$auth.account_id}`,
},
})
},
})
The MongoDB API provides powerful capabilities to interact with a MongoDB database, allowing you to perform CRUD (Create, Read, Update, Delete) operations, manage databases, and execute sophisticated queries. With Pipedream, you can harness these abilities to automate tasks, sync data across various apps, and react to events in real-time. It’s a combo that’s particularly potent for managing data workflows, syncing application states, or triggering actions based on changes to your data.
import mongodb from 'mongodb'
export default defineComponent({
props: {
mongodb: {
type: "app",
app: "mongodb",
},
collection: {
type: "string"
},
filter: {
type: "object"
}
},
async run({steps, $}) {
const MongoClient = mongodb.MongoClient
const {
database,
hostname,
username,
password,
} = this.mongodb.$auth
const url = `mongodb+srv://${username}:${password}@${hostname}/test?retryWrites=true&w=majority`
const client = await MongoClient.connect(url, {
useNewUrlParser: true,
useUnifiedTopology: true
})
const db = client.db(database)
const results = await db.collection(this.collection).find(this.filter).toArray();
$.export('results', results);
await client.close()
},
})