[英]App-Engine Connected Android Project: Does Google-Eclipse Plugin generate Client Endpoints for iOS and JavaScript in addition to the android api
Old 旧
I need to work on the iOS version of my app. 我需要在iOS版本的应用程序上工作。 The App-Engine and Android portions are completed using the Google Eclipse Plugin (GPE). 使用Google Eclipse插件(GPE)完成App-Engine和Android部分。 In the Official Google Documentations I am told the easiest way is to use maven. 在Google官方文档中,我被告知最简单的方法是使用maven。 Does anyone know how I might add maven to the App-Engine portion of my “connected” project? 有人知道我如何将Maven添加到“已连接”项目的App-Engine部分吗?
Apparently I only need to add the following one line in the maven file 显然我只需要在Maven文件中添加以下一行
mvn appengine:endpoints_get_discovery_doc
Update 更新资料
Again, I need to get the iOS client for an endpoint project that I created with the Google Eclipse Plugin as an App-engine Connected Android Project . 同样,我需要为使用Google Eclipse插件作为App Engine Connected Android Project创建的终结点项目获取iOS客户端。 From eclipse I simply do [Right Click] > Google > Generate Cloud Endpoint Client Library
and it generates the library for android. 从eclipse中,我只需执行[Right Click] > Google > Generate Cloud Endpoint Client Library
,它就会为android生成该库。 But now I just look in my war directory and I see three files: myendpoint-1-rest.discovery
, myendpoint-1-rcp.discovery
, myendpoint-1-rest.api
. 但是现在我只看我的war目录,就看到三个文件: myendpoint-1-rest.discovery
, myendpoint-1-rcp.discovery
, myendpoint-1-rest.api
。
Now this is a wild guess, but are these the files I need for iOS and JavaScript? 现在这是一个疯狂的猜测,但是这些是iOS和JavaScript我需要的文件吗? Or must I follow the instructions in the official docs to get the discovery files for iOS? 还是我必须按照官方文档中的说明获取iOS的发现文件? What I mean is I have not generated the files per the instructions but I have used the GPE for creating the endpoints for android. 我的意思是我没有按照说明生成文件,但是我已经使用GPE为Android创建端点。 Does GPE create the necessary clients for iOS and JavaScript as well? GPE是否也为iOS和JavaScript创建必要的客户端? I cannot find any documentation on that. 我找不到任何文档。
Javascript client only needs to include script https://apis.google.com/js/client.js . Javascript客户端仅需要包含脚本https://apis.google.com/js/client.js 。 You can load your API using 您可以使用以下方式加载API
gapi.client.load('api-name', 'v1', callback, 'https://app_id.appspot.com/_ah/api');
Objective-C client needs some extra work after generating your discovery doc . 生成发现文档后, Objective-C客户端需要做一些额外的工作 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.