with VisualPing and Data Stores?
Creates a new job that will belong to a given user or workspace. See the docs here
Add or update a single record in your Pipedream Data Store
Add or update multiple records to your Pipedream Data Store
VisualPing is a tool that lets you monitor web pages for changes. Using its API with Pipedream, you can automate reactions to those changes. For instance, you can set up workflows that notify you or your team when specific parts of a web page update, or use changes to trigger downstream actions in other apps. Pipedream's serverless platform enables you to connect VisualPing with a vast array of apps to create custom, automated workflows without writing a lot of code.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
visualping: {
type: "app",
app: "visualping",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://account.api.visualping.io/describe-user`,
headers: {
Authorization: `Bearer ${this.visualping.$auth.oauth_access_token}`,
},
})
},
})
Data Stores are a key-value store that allow you to persist state and share data across workflows. You can perform CRUD operations, enabling dynamic data management within your serverless architecture. Use it to save results from API calls, user inputs, or interim data; then read, update, or enrich this data in subsequent steps or workflows. Data Stores simplify stateful logic and cross-workflow communication, making them ideal for tracking process statuses, aggregating metrics, or serving as a simple configuration store.
export default defineComponent({
props: {
myDataStore: {
type: "data_store",
},
},
async run({ steps, $ }) {
await this.myDataStore.set("key_here","Any serializable JSON as the value")
return await this.myDataStore.get("key_here")
},
})