Search code examples
web-servicesgoogle-glassgoogle-mirror-apiremote-connection

Can Mirror Api call an external web service?


I want to develop an app with mirror api for the novel google glasses. Is it possible to call an external web service from the glassware? I have to use this web service to obtain the informations to display in the timeline cards.
If it is possible, how I can do it?


Solution

  • You need to provide a web service that interacts with the user's timeline to insert cards, but you can interact with whatever other web services you want from within yours in order to get the data that you push. Something like this:

            insert timeline               get 3rd party
                 cards                    data response
    User's  <--------------  Your Mirror  <-------------  Third party
    Glass   -------------->  web service  ------------->  web service
             subscribed                   make request
            notifications                 for 3rd party
             (menu items,                     data
              location)