Coder Social home page Coder Social logo

tosviol / gatsby-source-greenhouse Goto Github PK

View Code? Open in Web Editor NEW

This project forked from diegolamanno/gatsby-source-greenhouse

0.0 1.0 1.0 368 KB

Gatsby source plugin for loading job openings from greenhouse.io ⚛️

License: MIT License

JavaScript 100.00%

gatsby-source-greenhouse's Introduction

gatsby-source-greenhouse

Loads job openings from greenhouse.io into Gatsby.js. Based on gatsby-source-workable.

Status

npm version

Installation

npm install gatsby-source-greenhouse

or

yarn add gatsby-source-greenhouse

Usage

To use this source you need to supply a Greenhouse API token. You can create a Greenhouse API token by logging into Greenhouse and going to Configure > Dev Center > API Credential Management > Create New API Key. Make sure it is type Harvest.

API keys need to be authorized to access specific endpoints. Go to API Credential Management > Manage Permissions and make sure your key is authorized for the following endpoints:

  • Jobs
  • Job Posts
  • Departments

Next, edit gatsby-config.js to use the plugin:

{
  ...
  plugins: [
    ...
    {
      resolve: `gatsby-source-greenhouse`,
      options: {
        apiToken: `{API_TOKEN}`,
        jobPosts: {
          live: true
        }
      },
    },
  ]
}

By default, gatsby-source-greenhouse will only retrieve job openings that are marked as live. You can change this by passing in false in the jobPosts plugin option parameter.

Querying

You can query the all JobPost created by the plugin as follows:

{
    allGreenhouseJobPost {
        edges {
            node {
                ...
            }
        }
    }
}

You can also query all JobPost broken out for each department:

{
  allGreenhouseDepartment {
    edges {
      node {
        name
        childrenGreenhouseJobPost {
          title
        }
      }
    }
  }
}

gatsby-source-greenhouse's People

Contributors

diegolamanno avatar jaykayess avatar joe-alfaro-anchorage avatar platedbay avatar snyk-bot avatar tosviol avatar

Watchers

 avatar

Forkers

ivanteso

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.