简体   繁体   English

与App Engine相连的Android项目:除了android API外,Google-Eclipse插件还会为iOS和JavaScript生成客户端端点吗?

[英]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.discoverymyendpoint-1-rcp.discoverymyendpoint-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.

相关问题 将应用程序引擎连接的android项目复制到另一台计算机 - copy app-engine connected android project to another computer google-cloud端点应用程序引擎连接的android项目的登台服务器 - staging server for google-cloud endpoint app-engine connected android project 向Endpoints Server失败注册(与App Engine连接的Android项目) - Registration with Endpoints Server FAILED (App Engine connected Android Project) Google-Eclipse插件:向项目添加入口点 - Google-Eclipse Plugin: Adding entry points to project Google App Engine已连接Android(Eclipse)设备端点错误 - Google App Engine Connected Android (Eclipse) device endpoint error 在连接了Android的Google App Engine项目上创建自定义ArrayAdapter - Create a custom ArrayAdapter on an android connected Google App Engine project 适用于android studio的app引擎的高效记录器 - an efficient logger for app-engine on android studio Google Cloud Endpoints v2:针对在本地开发计算机上执行的App Engine应用程序的测试API密钥机制 - Google Cloud Endpoints v2: Testing API key mechanism for an app-engine app executed on the local development machine 创建与App Engine连接的Android项目 - Creating an App Engine Connected Android Project App Engine已连接android项目连接错误 - App Engine connected android project connection error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM