← Ghost.org (Content API)

New Author from Ghost.org (Content API) API

Pipedream makes it easy to connect APIs for Ghost.org (Content API) and 900+ other apps remarkably fast.

Trigger workflow on
New Author from the Ghost.org (Content API) API
Next, do this
Connect to 900+ APIs using code and no-code building blocks
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Trigger a workflow on New Author with Ghost.org (Content API) API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the New Author trigger
    1. Connect your Ghost.org (Content API) account
    2. Configure timer
  2. Add steps to connect to 900+ APIs using code and no-code building blocks
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Send Message with Discord Webhook API on New Author from Ghost.org (Content API) API
Ghost.org (Content API) + Discord Webhook
 
Try it
Add Multiple Rows with Google Sheets API on New Author from Ghost.org (Content API) API
Ghost.org (Content API) + Google Sheets
 
Try it
Get Film with SWAPI - Star Wars API on New Author from Ghost.org (Content API) API
Ghost.org (Content API) + SWAPI - Star Wars
 
Try it
Create Multiple Records with Airtable API on New Author from Ghost.org (Content API) API
Ghost.org (Content API) + Airtable
 
Try it
Custom Request with HTTP / Webhook API on New Author from Ghost.org (Content API) API
Ghost.org (Content API) + HTTP / Webhook
 
Try it

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

New Author on Ghost.org (Content API)
Description:Emit new event for each new author added on a site.
Version:0.0.2
Key:ghost_org_content_api-new-author

Code

// eslint-disable-next-line camelcase
const ghost_org_content_api = require("../../ghost_org_content_api.app.js");

module.exports = {
  type: "source",
  key: "ghost_org_content_api-new-author",
  name: "New Author",
  description: "Emit new event for each new author added on a site.",
  version: "0.0.2",
  dedupe: "unique",
  props: {
    ghost_org_content_api,
    db: "$.service.db",
    // eslint-disable-next-line pipedream/props-label,pipedream/props-description
    timer: {
      type: "$.interface.timer",
      default: {
        intervalSeconds: 60 * 15,
      },
    },
  },
  async run() {
    let total = 1;
    let page = 1;

    while (page <= total) {
      let results = await this.ghost_org_content_api.getAuthors(page);
      total = results.data.meta.pagination.pages;
      for (const result of results.data.authors) {
        this.$emit(result, {
          id: result.id,
          summary: result.name,
          ts: Date.now(),
        });
      }
      page++;
    }
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Ghost.org (Content API)ghost_org_content_apiappThis component uses the Ghost.org (Content API) app.
N/Adb$.service.dbThis component uses $.service.db to maintain state between component invocations.
timer$.interface.timer

Authentication

Ghost.org (Content API) uses API keys for authentication. When you connect your Ghost.org (Content API) account, Pipedream securely stores the keys so you can easily authenticate to Ghost.org (Content API) APIs in both code and no-code steps.

The Content API Key can be obtained by creating a new Custom Integration under the Integrations screen in Ghost Admin. There are details on connecting to the API in the Client Library page for Content API.

About Ghost.org (Content API)

Open source publishing platform

More Ways to Use Ghost.org (Content API)

Actions

Find author with the Ghost.org (Content API) API

Find an author. See the docs here.

 
Try it