asmbs/wp-schedule-builder

Build interactive agendas for scientific meetings

Installs: 475

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 5

Forks: 0

Open Issues: 7

Type:wordpress-plugin


README

ScheduleBuilder is a WordPress plugin for building interactive agendas for scientific meetings.

Latest Stable VersionLatest Unstable Version

Requirements

Installation

  1. Install with Composer:

    composer require asmbs/wp-schedule-builder
    
  2. Activate the plugin.

  3. Go to the newly created Schedule Settings page and add the conference dates, venues, rooms and credit information for the event you're managing.

  4. Start building!

Development

Requirements

  • NPM
  • Composer

Getting Started

To install the development dependencies, run:

composer install
npm install

To rebuild the assets, run:

npx webpack

(Requires npx)

RESTful API

As of v5.0 this plugin is bundled with a GET only api. To enable this feature set the SCHEDULE_BUILDER_API environmental variable 1. For details on the endpoints provided please see the Schedule-Builder API documentation

Webhook

With the RESTful API enable it is possible to report changes to session, abstract, and person post types by setting SCHEDULE_BUILDER_WEBHOOK_URL environmental variable to an absolute URL. The webhook MUST accept HTTP POST method with a JSON body,

{
  "@type": "{post_type}",
  "@id": "{post_type}/{post_id}",
  "import_id": "{post_type}_{post_id}",
  "update": true|false,
  "status": publish|trash
}

Where {post_type} is either session|abstract|person and {post_id} is the Wordpress post id

When sending the POST request to the webhook, if the environmental variable SCHEDULE_BUILDER_WEBHOOK_AUTHORIZATION is configured its value is added as a bearer token in the request Authorization header.

Example

The application .env file as:

# .env
SCHEDULE_BUILDER_WEBHOOK_AUTHORIZATION=the_webhooks_authorization_token_value

will translate to an HTTP authorization header:

Authorization: Bearer the_webhooks_authorization_token_value

Viewing API Documentation

Once deployed to view the API documents navigate to https://<meeting base url>/app/plugins/wp-schedule-builder/docs/ where <meetting base url> is the meetings Wordpress site's FQDN. Information on compiling the API documentation see docs/open-api.md