Giter VIP home page Giter VIP logo

radio-schedule-api's Introduction

KCHUNG Radio Schedule API

Get every KCHUNG Radio broadcast event for the current month. Or specify a year and a month.

The API pulls data from the KCHUNG Radio Broadcast Schedule Google Calendar.

Usage

Requesting Data

When requesting data from the API, you'll receive json in the following format:

{
  "id":"9inr77jglg5qpuu68qc8k25voc_20170401T190000Z",
  "name":"primary ingredients",
  "start":"2017-04-01T12:00:00-07:00",
  "end":"2017-04-01T13:00:00-07:00",
  "url":"http://lacarchive.com/kchung/archive/show/primary%20ingredients"
}

Filtering Data

Any event whose name includes the words 'TENTATIVE', 'TBD', 'Open Slot', or 'DONOTLIST' will not be returned.

Replacing the URL

By default, the url field will be generated automatically by the api, like in the example above. name is processed by encodeURI() to escape certain characters.

If there is a url anywhere in the description field for that event in the google calendar then that url will be used instead. If there are multiple urls, the first will be used.

Run locally

git clone this repository.

Get env_secrets.sh from a secure channel and place in lib/auth/.

Install dependencies and run:

yarn
yarn dev

Or alternatively:

npm install
npm run dev

Contributing

Make your changes, create a Pull Request, wait for it to be merged.

Deploy to the cloud with now:

now kchungradio/schedule-api

radio-schedule-api's People

Contributors

tim-phillips avatar

Stargazers

Roman avatar

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.