Reputation: 385
Someone please help me out on using Google APIs in google Glass. I need to use Calendar API in Glass what approach I should take for user authentication?
Do I need to use Mirror API for this ?
[EDIT]
My confusion lies here :- I have installed the APK into glass. Now my app requires an authenticated (OAUTH) request to access the Google Calendar APIs. So how the Mirror API would communicate with the app build through GDK? Or before installation I need to authenticate first?
Upvotes: 0
Views: 266
Reputation: 874
The calendar can be used with google apis for calendar after you get authenticated. For this purpose the communication with calendar rest web service will be conducted by server side technology (java, php, whatever).
Mirror API is needed only as a bridge between your server side app and glass.
This will give you the basic understanding how to use google apis with glass
Upvotes: 1
Reputation: 50701
It depends on exactly what you're trying to do with the Calendar API, but yes, it sounds like your Glassware is a good candidate for the Mirror API.
User authentication and authorization should be done with OAuth2. See https://developers.google.com/glass/develop/mirror/authorization for more about auth using the Mirror API and https://developers.google.com/google-apps/calendar/auth for more about Calendar's auth.
Upvotes: 0