GAE Endpoint Library for C# in Xamarin

久未见 提交于 2019-12-08 03:54:33

问题


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!


回答1:


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



来源:https://stackoverflow.com/questions/38029525/gae-endpoint-library-for-c-sharp-in-xamarin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!