Xamarin中用于C#的GAE端点库 [英] GAE Endpoint Library for C# in Xamarin

查看:115
本文介绍了Xamarin中用于C#的GAE端点库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前使用Android Studio构建GAE端点和应用程序。然而,我想转移到Xamarin,所以我可以构建我的应用程序的iOS版本。我的计划是继续使用Android Studio构建端点客户端库并将其迁移到Xamarin。



然而,我的挑战是找到任何有用的信息来完成这项工作。有人可以建议吗?非常感谢!

解决方案

第1步:如果您没有一个sudo,安装pip easy_install pip



第2步:安装google客户端库生成器pip安装google-apis-client-generator步骤3:在浏览器中点击url通过替换应用程序ID https:// {applicationId} .appspot.com / _ah / api / discovery / v1 / apis



第4步:将属性复制到jsondiscoveryRestUrl它看起来像https:// {applicationId} .appspot.com / _ah / api / discovery / v1 / apis / {您的api名称} / v1 / rest


$ b $第5步:从url下载文件并保存为rest.json第6步:使用下面的代码generate_library --input = rest.json - -language = csharp --output_dir = {你的输出位置}



请参阅此链接可能对您有用



https:// sookocheff .com / post / appengine / cloud-endpoints / generate-ac-sharp-client /

另外Refere: https://github.com/GoogleCloudPlatform/appengine-endpoints-helloworld-dotnet


I currently using Android Studio to built my GAE endpoints and app. However, I want to move to Xamarin, so I can build an iOS version of my app.

My plan is to continue to use Android Studio to build the endpoint client library and "migrate" it to Xamarin.

However, my challenge is finding any useful information to make this work. Can someone advise? Much appreciate it!

解决方案

Step 1: Install pip if you don't have one sudo easy_install pip

Step 2: Install google client library generator pip install google-apis-client-generator

Step 3 : Hit the url in the browser by replacing the application ID https://{applicationId}.appspot.com/_ah/api/discovery/v1/apis

Step 4 : Copy the the property in the json "discoveryRestUrl" It would look like https://{applicationId}.appspot.com/_ah/api/discovery/v1/apis/{your api name}/v1/rest

Step 5: Download the file from url and save it as rest.json

Step 6: use the below line generate_library --input=rest.json --language=csharp --output_dir={your output location}

Please refer this link might be useful for you.

https://sookocheff.com/post/appengine/cloud-endpoints/generating-a-c-sharp-client/

Also Refere: https://github.com/GoogleCloudPlatform/appengine-endpoints-helloworld-dotnet

这篇关于Xamarin中用于C#的GAE端点库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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