webcamp zagreb 2014 mirror api
DESCRIPTION
Introduction to Google Glass Development for Web Developers and Mirror APITRANSCRIPT
Google Glass for Web Developers
Demir SelmanovićTechnical Editor
demir.selmanovic
Who am I, where do I come from, what is the meaning of life?
www.toptal.com/blog
Today‘s menu -
●What is Google Glass?
●User interface and interaction
●Developing for Google Glass
●Mirror API
●Demo
What is Google Glass -
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
User interface and interaction -
Timeline
User interface and interaction -
Voice + Touch
User interface and interaction -
Cards
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
Mirror API -
• OAuth 2.0 authorization
• Access to timeline
• Built-in and custom menus
• Access to contacts
• Event subscriptions
• Access to location
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
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
Mirror API: demo -
Demo
http://www.toptal.com/google-glass/mirror-api-google-glass-for-web-developers
Mirror API -
Heads up!
?