Javascript GCal API

Hi there!

I was wondering if I could get some guidance in using Google’s Javascript Calendar API ( within a Fuse app. I’m assuming that I can import it for use just like one would import Parse, by downloading the file and putting it in my project’s root and then doing

<JavaScript File='client.js' ux:Global='GCal' />
       var GCal = require('GCal');

or something. The main problem is I’m confused about how to get the OAuth flow working since if it’s anything like the Python API, it requires redirecting the user to some sort of auth page and capturing the auth token, which I have no clue how to implement in Javascript.

Any help would be greatly appreciated, thanks!

There’s also a Node.js version of the API if that makes it any easier!

The entire premise of my app relies on this so I’m kind of stuck in a rut if there’s no way to access Google’s API.


As long as the API doesn’t depend on anything Node.js specific, it should be straight forward. If it doesn’t work for some reason, we’ll have to asign someone to investigate that.

Just for future reference for anyone who comes here looking to do the same thing - Node can’t be used since it’s not actually pure JS and it references C++ code or something in many of the key source modules that are used in practically everything.