with Wachete and Columns Ai?
Emit new event when a Wachet receives a new notification
Creates a new monitor for a specific website or web page. [See the documentation(https://api.wachete.com/swagger/ui/index/index.html)
Builds a graph object from scratch and publishes it. See the documentation
Removes an existing monitor for a specific website or web page. [See the documentation(https://api.wachete.com/swagger/ui/index/index.html)
Builds a graph object from a template and publishes it. See the documentation
Retrieves data from a monitored website or web pages. [See the documentation(https://api.wachete.com/swagger/ui/index/index.html)
The Wachete API lets you track changes in web content and get notified when updates happen. This is handy for monitoring websites for new content, price changes, or availability of products, without manually checking the sites. Using Pipedream, you can integrate Wachete with other apps to automate reactions to these updates. Think about monitoring your competitors’ sites, keeping tabs on industry news, or even watching for job postings. With Wachete on Pipedream, these tasks become set-and-forget operations.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
wachete: {
type: "app",
app: "wachete",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.wachete.com/thirdparty/v1/notification/list`,
headers: {
Authorization: `Bearer ${this.wachete.$auth.oauth_access_token}`,
"Content-type": `application/json`,
"accept": `*/*`,
},
})
},
})
import { ChartType } from 'columns-graph-model';
import { Columns } from 'columns-sdk';
export default defineComponent({
props: {
columns_ai: {
type: "app",
app: "columns_ai",
}
},
async run({steps, $}) {
const rows = [{
"value": 312,
"state": "WA",
"parent": "US"
}];// rows is an example data set where you should organize your data in a similar way.
//Instantiates a Columns SDK object with your API Key.
const columns = new Columns(this.columns_ai.$auth.api_key);
const data = columns.data(['state'], ['value'], rows);
const graph = columns.graph(data);
// switch to different chart types: BAR, PIE, DOUGHGUT, LINE, AREA, SCATTER, etc.
graph.type = ChartType.COLUMN;
// customise the graph (lots of options in its data model)
graph.settings.general.palette = ['#ff0000', '#00ff00', '#0000ff'];
graph.settings.general.background = '#00000002';
return graph;
},
})