Do we HAVE to generate and use client libraries to use Google App Engine's Endpoints?

故事扮演 提交于 2019-12-10 11:55:18

问题


I am currently developing an Swift iOS app with GAE Endpoints for the RESTful API. It seems like all the tutorials and documents make you generate and use client libraries if you need to use the API on the client side. I was wondering if it's possible for me to use the API by just using plain url request or Alamofire and get the result in JSON format?


回答1:


Yes, it's totally possible to access endpoints via HTTP requests. The client libraries just help you to generate those requests without having to know the exact URLs. The biggest part where the client libraries help you is for authentication, but if you authenticate with Google and get an access token another way, you can just add that to the request header as

Authorization: Bearer your_access_token



来源:https://stackoverflow.com/questions/30884785/do-we-have-to-generate-and-use-client-libraries-to-use-google-app-engines-endpo

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