← Ghost.org (Content API)

Find author with Ghost.org (Content API) API

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

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Find author with the Ghost.org (Content API) API
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

Create a workflow to Find author with the 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 Find author action
    1. Connect your Ghost.org (Content API) account
    2. Configure Author's Name
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Find author with Ghost.org (Content API) API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Ghost.org (Content API)
 
Try it
Find author with Ghost.org (Content API) API on New Message in Channel from Discord Bot API
Discord Bot + Ghost.org (Content API)
 
Try it
Find author with Ghost.org (Content API) API on New Submission from Typeform API
Typeform + Ghost.org (Content API)
 
Try it
Find author with Ghost.org (Content API) API on Custom Events from Zoom API
Zoom + Ghost.org (Content API)
 
Try it
Find author with Ghost.org (Content API) API on New Submission (Instant) from Jotform API
Jotform + Ghost.org (Content API)
 
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.

Find author on Ghost.org (Content API)
Description:Find an author. [See the docs here](https://ghost.org/docs/content-api/#authors).
Version:0.0.1
Key:ghost_org_content_api-find-author

Code

import ghostContentApi from "../../ghost_org_content_api.app.mjs";
import constants from "../../common/constants.mjs";
import utils from "../../common/utils.mjs";

export default {
  key: "ghost_org_content_api-find-author",
  name: "Find author",
  description: "Find an author. [See the docs here](https://ghost.org/docs/content-api/#authors).",
  type: "action",
  version: "0.0.1",
  props: {
    ghostContentApi,
    name: {
      type: "string",
      label: "Author's Name",
      description: "The name of an author",
    },
  },
  async run({ $ }) {
    const stream = await this.ghostContentApi.getResourcesStream({
      resourceFn: this.ghostContentApi.getAuthors,
      resourceFnArgs: {
        $,
        params: {
          limit: constants.DEFAULT_LIMIT,
        },
      },
      resourceName: "authors",
    });

    const resources = await utils.streamIterator(stream);
    const authors =
      resources.filter(({ name }) =>
        name.toLowerCase().includes(this.name?.toLowerCase()));

    $.export("$summary", `Successfuly found ${authors.length} author(s)`);

    return authors;
  },
};

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)ghostContentApiappThis component uses the Ghost.org (Content API) app.
Author's Namenamestring

The name of an author

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)

Triggers

New Author from the Ghost.org (Content API) API

Emit new event for each new author added on a site.

 
Try it