with signNow and Playwright?
Emit new event when all signers have filled in and signed the document. See the documentation
Emit new event when a document has been updated. See the documentation
Creates a new document copy out of a template. See the documentation
Adds values to fields that the signers can later edit when they receive the document for signature. See the documentation
Generates a pdf of the page and store it on /tmp directory. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
signnow: {
type: "app",
app: "signnow",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.signnow.com/user`,
headers: {
Authorization: `Bearer ${this.signnow.$auth.oauth_access_token}`,
},
})
},
})
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 }
},
})