with Procore and Puppeteer?
Emits an event each time a Budget Snapshot is created, updated, or deleted in a project.
Emits an event each time a Commitment Change Order is created, updated, or deleted in a project.
Emit new event when a new budget snapshot event is created. See the documentation
Emit new event when a new change order package event is created. See the documentation
Emit new event when a new commitment change order event is created. See the documentation
Get the HTML of a webpage using Puppeteer. See the documentation for details.
Get the title of a webpage using Puppeteer. See the documentation
The Procore API empowers developers to interact with its construction management software programmatically, enabling automation of tasks, data synchronization, and enhanced reporting. With APIs covering project management, quality and safety, construction financials, and field productivity, you can craft workflows that streamline operations, reduce manual entry, and provide real-time insights. On Pipedream, these capabilities can be harnessed to create workflows that react to events in Procore or orchestrate actions between Procore and other apps, optimizing construction project workflows.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
procore: {
type: "app",
app: "procore",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.procore.com/rest/v1.0/me`,
headers: {
Authorization: `Bearer ${this.procore.$auth.oauth_access_token}`,
},
})
},
})
Puppeteer is a Node.js library which provides a high-level API to control Chrome/Chromium over the DevTools Protocol. Puppeteer runs in headless mode on Chromium on Pipedream.
Using Puppeteer you can perform tasks including:
import { puppeteer } from '@pipedream/browsers';
export default defineComponent({
async run({steps, $}) {
const browser = await puppeteer.browser();
// Interact with the web page programmatically
// See Puppeeter's Page documentation for available methods:
// https://pptr.dev/api/puppeteer.page
const page = await browser.newPage();
await page.goto('https://pipedream.com/');
const title = await page.title();
const content = await page.content();
// The browser needs to be closed, otherwise the step will hang
await browser.close();
return { title, content }
},
})