阅读背景:

Xamarin中用于C#的GAE端点库

来源:互联网 

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.

我目前正在使用Android Studio构建我的GAE端点和应用程序。但是,我想转移到Xamarin,所以我可以构建我的应用程序的iOS版本。

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

我的计划是继续使用Android Studio构建端点客户端库并将其“迁移”到Xamarin。

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

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

1 个解决方案

#1


1  

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

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

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

第2步:安装谷歌客户端库生成器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

第3步:通过替换应用程序ID https:// {applicationId} .appspot.com / _ah / api / discovery / v1 / apis来浏览浏览器中的URL

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

第4步:复制json“discoveryRestUrl”中的属性它看起来像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

步骤5:从url下载文件并将其另存为rest.json

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

第6步:使用以下行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/

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

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

也参考:https://github.com/GoogleCloudPlatform/appengine-endpoints-helloworld-dotnet


分享到: