with WeKan and changes.page?
Emit new event when a new post is created. See the documentation
Get the latest post from Changes Page. See the documentation
Get the pinned post from Changes Page. See the documentation
Retrieve a list of posts from Changes Page. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
wekan: {
type: "app",
app: "wekan",
}
},
async run({steps, $}) {
const data = {
"username": ${this.wekan.$auth.username},
"password": ${this.wekan.$auth.password}
}
return await axios($, {
url: `${this.wekan.$auth.api_url}/api/boards`,
headers: {
Authorization: `Bearer ${this.wekan.$auth.oauth_access_token}`,
"accept": `application/json`,
},
data,
})
},
})
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
changes_page: {
type: "app",
app: "changes_page",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.changes_page.$auth.subdomain}.changes.page/latest.json`,
})
},
})