webcamp zagreb 2014 mirror api

14
Google Glass for Web Developers

Upload: dselmanovic

Post on 06-Jul-2015

74 views

Category:

Software


2 download

DESCRIPTION

Introduction to Google Glass Development for Web Developers and Mirror API

TRANSCRIPT

Page 1: WebCamp Zagreb 2014   mirror api

Google Glass for Web Developers

Page 2: WebCamp Zagreb 2014   mirror api

Demir SelmanovićTechnical Editor

[email protected]

demir.selmanovic

Who am I, where do I come from, what is the meaning of life?

www.toptal.com/blog

Page 3: WebCamp Zagreb 2014   mirror api

Today‘s menu -

●What is Google Glass?

●User interface and interaction

●Developing for Google Glass

●Mirror API

●Demo

Page 4: WebCamp Zagreb 2014   mirror api

What is Google Glass -

Page 5: WebCamp Zagreb 2014   mirror api

What is Google Glass -

• CPU TI OPAM 4430 - 1GHz

• 16GB ScanDisk Flash

• 1GB RAM

• 570 mAh battery

• Camera 5Mpx / 720p video

• Microphone

• GPS, InvenSense MPU-9150 internal senzor

• Speaker

• 640x360 micro screen

Android powered device controlled by

voice and touch that looks like a glass

+ GDK + Mirror API = Google Glass

Page 6: WebCamp Zagreb 2014   mirror api

User interface and interaction -

Timeline

Page 7: WebCamp Zagreb 2014   mirror api

User interface and interaction -

Voice + Touch

Page 8: WebCamp Zagreb 2014   mirror api

User interface and interaction -

Cards

Page 9: WebCamp Zagreb 2014   mirror api

Developing for Google Glass -

Android GDK Mirror API

vs

• Native Android (Java)

• Access to hardware and sensors

• Full control over interface and interaction

• Offline

• Real time user interaction

• Platform independent (RESTful Web API)

• Requires Internet access

• Relies on Google infrastructure

Page 10: WebCamp Zagreb 2014   mirror api

Mirror API -

• OAuth 2.0 authorization

• Access to timeline

• Built-in and custom menus

• Access to contacts

• Event subscriptions

• Access to location

Page 11: WebCamp Zagreb 2014   mirror api

Mirror API: Authorization -

https://code.google.com/apis/console/

1. Create a project

2. Enable Mirror API

3. Create client ID for Web applications

4. Define OAuth scopehttps://www.googleapis.com/auth/glass.timeline

https://www.googleapis.com/auth/userinfo.profile

5. Get OAuth token

6. Use Bearer authentication for Mirror API

Page 12: WebCamp Zagreb 2014   mirror api

Mirror API: Playground -

https://developers.google.com/glass/tools-

downloads/playground

1. Publicly available

2. Does not require actual Glass hardware

3. Set of customizable predefined templates

4. Simple to activate

https://mirror-api-playground.appspot.com

Page 13: WebCamp Zagreb 2014   mirror api

Mirror API: demo -

Demo

http://www.toptal.com/google-glass/mirror-api-google-glass-for-web-developers

Page 14: WebCamp Zagreb 2014   mirror api

Mirror API -

Heads up!

?