webcamp zagreb 2014 mirror api
DESCRIPTION
Introduction to Google Glass Development for Web Developers and Mirror APITRANSCRIPT
![Page 1: WebCamp Zagreb 2014 mirror api](https://reader033.vdocument.in/reader033/viewer/2022060200/559969da1a28ab0e6a8b472e/html5/thumbnails/1.jpg)
Google Glass for Web Developers
![Page 2: WebCamp Zagreb 2014 mirror api](https://reader033.vdocument.in/reader033/viewer/2022060200/559969da1a28ab0e6a8b472e/html5/thumbnails/2.jpg)
Demir SelmanovićTechnical Editor
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](https://reader033.vdocument.in/reader033/viewer/2022060200/559969da1a28ab0e6a8b472e/html5/thumbnails/3.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022060200/559969da1a28ab0e6a8b472e/html5/thumbnails/4.jpg)
What is Google Glass -
![Page 5: WebCamp Zagreb 2014 mirror api](https://reader033.vdocument.in/reader033/viewer/2022060200/559969da1a28ab0e6a8b472e/html5/thumbnails/5.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022060200/559969da1a28ab0e6a8b472e/html5/thumbnails/6.jpg)
User interface and interaction -
Timeline
![Page 7: WebCamp Zagreb 2014 mirror api](https://reader033.vdocument.in/reader033/viewer/2022060200/559969da1a28ab0e6a8b472e/html5/thumbnails/7.jpg)
User interface and interaction -
Voice + Touch
![Page 8: WebCamp Zagreb 2014 mirror api](https://reader033.vdocument.in/reader033/viewer/2022060200/559969da1a28ab0e6a8b472e/html5/thumbnails/8.jpg)
User interface and interaction -
Cards
![Page 9: WebCamp Zagreb 2014 mirror api](https://reader033.vdocument.in/reader033/viewer/2022060200/559969da1a28ab0e6a8b472e/html5/thumbnails/9.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022060200/559969da1a28ab0e6a8b472e/html5/thumbnails/10.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022060200/559969da1a28ab0e6a8b472e/html5/thumbnails/11.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022060200/559969da1a28ab0e6a8b472e/html5/thumbnails/12.jpg)
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](https://reader033.vdocument.in/reader033/viewer/2022060200/559969da1a28ab0e6a8b472e/html5/thumbnails/13.jpg)
Mirror API: demo -
Demo
http://www.toptal.com/google-glass/mirror-api-google-glass-for-web-developers
![Page 14: WebCamp Zagreb 2014 mirror api](https://reader033.vdocument.in/reader033/viewer/2022060200/559969da1a28ab0e6a8b472e/html5/thumbnails/14.jpg)
Mirror API -
Heads up!
?