with Braintree and Notiff (OAuth)?
Send a new notification to a user or system via notiff.io. See the documentation
The Braintree API provides a robust platform for handling online payments, including payment processing, merchant account management, fraud prevention, and data analysis. With Pipedream, you can automate workflows that trigger on a variety of Braintree events, such as new transactions or customer records. These automations can integrate seamlessly with other services, facilitating custom notifications, data synchronization, and more, streamlining ecommerce operations and enhancing customer experiences.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
braintree: {
type: "app",
app: "braintree",
}
},
async run({steps, $}) {
const data = {
"query": `query { ping }`,
}
return await axios($, {
method: "post",
url: `https://${this.braintree.$auth.environment}.braintree-api.com/graphql`,
headers: {
"Braintree-Version": `2019-01-01`,
"Content-Type": `application/json`,
},
auth: {
username: `${this.braintree.$auth.public_key}`,
password: `${this.braintree.$auth.private_key}`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
notiff_io: {
type: "app",
app: "notiff_io",
}
},
async run({steps, $}) {
return await axios($, {
method: "post",
url: `https://notiff.io/api/1.1/wf/me`,
headers: {
Authorization: `Bearer ${this.notiff_io.$auth.oauth_access_token}`,
},
})
},
})