Mirror Api可以调用外部Web服务吗? [英] Can Mirror Api call an external web service?

查看:99
本文介绍了Mirror Api可以调用外部Web服务吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想为新颖的Google眼镜开发一个带有镜像API的应用.是否可以从玻璃器皿调用外部Web服务?我必须使用此Web服务来获取要显示在时间轴卡中的信息.
如果有可能,我该怎么办?

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?

推荐答案

您需要提供一种与用户的时间轴进行交互以插入卡片的Web服务,但是您可以与自己想要的任何其他Web服务进行交互.获取您推送的数据.像这样:

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)

这篇关于Mirror Api可以调用外部Web服务吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆