with Adyen and Mural?
Cancels a payment that has not yet been captured. See the documentation
Create a new mural within a specified workspace. See the documentation
Captures an authorized payment. This is typically used for delayed capture scenarios, such as when you need to verify the order before capturing the funds.
Create a new sticky note within a given mural. See the documentation
import adyen from "@adyen/api-library";
export default defineComponent({
props: {
adyen: {
type: "app",
app: "adyen",
}
},
async run({steps, $}) {
const client = new adyen.Client({
apiKey: this.adyen.$auth.api_key,
environment: this.adyen.$auth.environment
});
const managementApi = new adyen.ManagementAPI(client);
return managementApi.MyAPICredentialApi.getApiCredentialDetails();
},
});
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
mural: {
type: "app",
app: "mural",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://app.mural.co/api/public/v1/users/me`,
headers: {
Authorization: `Bearer ${this.mural.$auth.oauth_access_token}`,
"accept": `application/json`,
},
})
},
})