Socket
Book a DemoInstallSign in
Socket

express-calendar

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

express-calendar

express middleware for Google Calendar

1.0.4
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

express-calendar

Zero-dependency express middleware for Google Calendar (API v3)

npm version

This is meant to be a read-only proxy for the events of a publicly accessible Google Calendar. Currently, only API key access is supported. OAuth support is not planned.

Usage

npm install express-calendar --save
var express = require('express')
var expressCalendar = require('express-calendar')

var options = {
  calendarId: '<put your calendar ID here>@group.calendar.google.com',
  parameters: {
    key: '<put your API key here>'
  }
}

var app = express()
expressCalendar(app, options)
curl http://express-calendar.node.js:3000/2016/04/01/
{
  "items": [
    {
      "id":"klnkbropn11lrjs54qp1ukaqog",
      "summary":"The Rainbow"
    },
    {
      "id":"60gmq65c60e2tcodiiabpjmdqc",
      "summary":"The Jets"
    },
    {
      "id":"mh8d5b0avsoa8q3r0luu50626c",
      "summary":"The Sharks"
    }
  ],
  "dateRange": [
    "2016-04-01T00:00:00.000Z",
    "2016-04-02T00:00:00.000Z"
  ]
}

See also the example.

Options

  • calendarId: ID of your Google Calendar, typically something@group.calendar.google.com (required)
  • parameters: anything that can be passed to calendar.events.list, e.g.
    • key: your Google API key (required)
    • fields: fields to include in response
  • templates: mapping from MIME types (may be canonicalized) to functions which transform the JSON response to the desired output (see example)

Keywords

google apis

FAQs

Package last updated on 15 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.