Giter Site home page Giter Site logo

lpercifield / glass-mirror-nodejs-auth-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from emil10001/glass-mirror-nodejs-auth-demo

0.0 2.0 0.0 60 KB

A brief demo showing how to authenticate and make a couple simple requests with the Google Glass Mirror API using node.js

glass-mirror-nodejs-auth-demo's Introduction

Glass Mirror API using node.js Demo

A brief demo showing how to authenticate and make a couple simple requests with the Google Glass Mirror API using node.js

Here's a blog post detailing the code contained in this repo.

All this does right now is allows a user to authenticate, pushes the message 'hello world' to Glass, and requests the user's timeline for the registered app.

Instructions

  • follow the instructions in the Mirror API documentation for registering a new app
  • pull down this repository and run npm install
  • copy sample_config.json to config.json, and replace the values with those from the Google Developer's console
  • run node app.js
  • visit the app in your browser, and authenticate with Google

Notes

Currently, this is incredibly simple, and as such is completely lacking in style, structure, and functionality. This is intended to demonstrate two things, first how to authenticate with Google for the Mirror API with OAuth2, using node.js. Second, it begins to show how you can use node.js to make requests with the Mirror API. Think of it as the quick-start for node.js.

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.