Skip to content

Projects by the Orbis Cascade Alliance that use the OpenAI API

Notifications You must be signed in to change notification settings

Orbis-Cascade-Alliance/orca-openai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI API Projects

This repository contains projects by the Orbis Cascade Alliance that use the OpenAI API.

Jobs Board

This project uses the Gmail API, OpenAI API, and Gravity Forms API to harvest emails to the Alliance Announce listserv that contain job positions and post them to the website. This code is provided mainly for example, and will not work "out of the box." The following are not included on GitHub:

  • A definitions.php file placed above the public HTML directory, which contains definitions for OPENAI_SECRET (the key from OpenAI), JOBS_FORM (the Gravity Forms ID for posting submissions), and JOBS_USER (the WordPress user ID to associate with submissions)
  • The Google API PHP Client, installed within a directory under jobs-board called "google". Only the Gmail service is necessary.
  • A directory under jobs-board called "oauth2" with the credentials.json and token.json files necessary to authenticate to the Gmail API. See the Google API PHP Client README and Google for Developers guides.

In addition, this code requires the setup of a Google Cloud App with a) OAuth credentials for the Gmail API, and b) a Pub/Sub topic and subscription, with push notifications directed to the file jobs-board/post-jobs.php. A watch request must be submitted at least once every 7 days, as in the file jobs-board/watch.php.

About

Projects by the Orbis Cascade Alliance that use the OpenAI API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages