with Accredible and Playwright?
This source triggers when a new credential is issued to a recipient. See the documentation
Emit new event when an existing credential's details are updated or modified. See the documentation
Issue a new credential to a given recipient. See the documentation
Remove a specific credential from the system. See the documentation
Generates a pdf of the page and store it on /tmp directory. See the documentation
The Accredible API lets you automate the creation and management of digital certificates, badges, and blockchain credentials. Using Pipedream, you can connect the Accredible API to myriad services for streamlined workflow automation. Create digital certificates when a student completes a course, update credentials with new information, or share achievements across social platforms or via email. Pipedream's serverless platform enables you to integrate these actions with other apps, such as learning management systems, CRMs, and communication tools, without writing extensive code.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
accredible: {
type: "app",
app: "accredible",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.accredible.com/v1/issuer/details`,
headers: {
"Content-Type": `application/json`,
"Authorization": `Token token=${this.accredible.$auth.api_key}`,
},
})
},
})
Playwright is a Node.js library which provides a high-level API to control Chrome/Chromium over the DevTools Protocol. Playwright runs in headless mode on Chromium on Pipedream.
Using Playwright you can perform tasks including:
import { playwright } from '@pipedream/browsers';
export default defineComponent({
async run({steps, $}) {
const browser = await playwright.launch();
// Interact with the web page programmatically
// See Playwright's Page documentation for available methods:
// https://playwright.dev/docs/api/class-page
const page = await browser.newPage();
await page.goto('https://pipedream.com/');
const title = await page.title();
const content = await page.content();
// Close context and browser otherwise the step will hang
await page.context().close()
await browser.close();
return { title, content }
},
})