with Elastic Cloud and Ghost.org (Content API)?
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
elastic_cloud: {
type: "app",
app: "elastic_cloud",
}
},
async run({steps, $}) {
//gets cluster info
//see: https://www.elastic.co/docs/api/doc/elasticsearch/v8/operation/operation-info
return await axios($, {
url: `${this.elastic_cloud.$auth.api_url}`,
headers: {
"authorization": `ApiKey ${this.elastic_cloud.$auth.api_key}`,
},
})
},
})
The Ghost.org (Content API) unlocks the power of content automation and integration for developers and content creators. With this API, you can programmatically access and manipulate your blog's posts, tags, authors, and settings. It's perfect for streamlining content workflows, from syncing with other platforms to analyzing and optimizing your content strategy.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
ghost_org_content_api: {
type: "app",
app: "ghost_org_content_api",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://${this.ghost_org_content_api.$auth.admin_domain}/ghost/api/v3/content/posts/`,
params: {
key: `${this.ghost_org_content_api.$auth.content_api_key}`,
},
})
},
})