turingschool/community-events

Name: community-events

Owner: Turing School of Software & Design

Description: A little API and script for injecting events from the Turing Community Calendar into the daily outline.

Created: 2016-07-09 17:18:49.0

Updated: 2016-07-10 18:34:31.0

Pushed: 2016-07-10 18:32:41.0

Homepage: http://turing-community-events.herokuapp.com

Size: 17

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Turing School Community Events

Nota bene: This is very much beta software.

What is this?

This is a little API and script for injecting events from the Turing Community Calendar into the daily outline or for working with Slackbots or really whatever your imagination can come up with. Here is a quick example of what it looks like in action.

Basically, you can just add all of the details for a certain event into the description and the API will even convert the Markdown to HTML. As long as everything is in the calendar invite, you don?t have to worry about the rest.

All you need is an element on the page with the id of community-events and then add one of the follow two scripts to the page.

You can also pass the a target query parameter with some other id as the value if you?d like to use something other than community-events. The script will look for an element of whatever value you provide instead.

What does the API look like?

You can make a call to events and get back today and tomorrows events by default.

The response will look something like this:


vents": [
{
  "title": "The Internet's Own Boy Screening",
  "date": "Thursday, July 14th",
  "start": "6:00pm",
  "end": "8:00pm",
  "location": "Big Workspace",
  "description": ""
}


The API also takes a number of query parameters to customize the output:

Known Issues

This currently doesn?t work with repeated events, which is kind of a deal killer.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.