with DigitalRiver and Bitdefender GravityZone?
Cancels an existing order in Digital River. See the documentation
Creates a new product on the Digital River platform. See the documentation
Updates the information for a customer in Digital River. See the documentation
The DigitalRiver API lets you manage e-commerce activities like orders, payments, and customer information. On Pipedream, you can harness this API to create automated workflows that integrate with other apps, react to events, process transactions, and handle global e-commerce complexities. Pipedream's serverless platform enables you to build and execute these workflows quickly, without setting up infrastructure, and to connect DigitalRiver with countless other services for a seamless e-commerce ecosystem.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
digitalriver: {
type: "app",
app: "digitalriver",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.digitalriver.com/customers`,
headers: {
Authorization: `Bearer ${this.digitalriver.$auth.api_key}`,
},
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
bitdefender_gravityzone: {
type: "app",
app: "bitdefender_gravityzone",
}
},
async run({steps, $}) {
const data = {
"id": "120000",
"jsonrpc": "2.0",
"method": "getAccountDetails",
"params": {}
}
return await axios($, {
method: "POST",
url: `${this.bitdefender_gravityzone.$auth.api_url}/v1.0/jsonrpc/accounts`,
headers: {
"content-type": `application/json`,
},
auth: {
username: `${this.bitdefender_gravityzone.$auth.api_key}`,
password: ``,
},
data,
})
},
})