{"id":17962029,"url":"https://github.com/rockwotj/google-cloud-endpoints-client","last_synced_at":"2025-09-16T13:13:26.734Z","repository":{"id":85928766,"uuid":"37297383","full_name":"rockwotj/google-cloud-endpoints-client","owner":"rockwotj","description":"Cocoa Pod for the Google Cloud Endpoints Client Library","archived":false,"fork":false,"pushed_at":"2015-09-04T23:47:41.000Z","size":360,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-09T07:13:31.535Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rockwotj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-12T02:22:01.000Z","updated_at":"2015-11-24T21:28:48.000Z","dependencies_parsed_at":"2023-03-13T07:32:54.676Z","dependency_job_id":null,"html_url":"https://github.com/rockwotj/google-cloud-endpoints-client","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockwotj%2Fgoogle-cloud-endpoints-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockwotj%2Fgoogle-cloud-endpoints-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockwotj%2Fgoogle-cloud-endpoints-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rockwotj%2Fgoogle-cloud-endpoints-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rockwotj","download_url":"https://codeload.github.com/rockwotj/google-cloud-endpoints-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247061103,"owners_count":20877165,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-29T11:12:29.448Z","updated_at":"2025-09-16T13:13:21.636Z","avatar_url":"https://github.com/rockwotj.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google Cloud Endpoints Client Cocoa Pod\n\nThis is a CocoaPod of the [GTL Client library](https://code.google.com/p/google-api-objectivec-client/) that is used in Google Cloud Endpoint's generated client code. This is basically a way to automate [this](https://cloud.google.com/appengine/docs/python/endpoints/consume_ios#Python_Adding_required_files_to_your_iOS_project) step in the Google Cloud Endpoints setup process. This pod is automatically updated once a week, via a [script](https://gist.github.com/rockwotj/77dcb7fc64c64cd21f4c).\n\nI hope this makes your life a little easier!\n\n## Installation\n\ngoogle-cloud-endpoints-client is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'google-cloud-endpoints-client', :git =\u003e 'https://github.com/rockwotj/google-cloud-endpoints-client.git'\n```\n\n## How to set up Google Cloud Endpoints with this pod\n\nThese steps are repeated from the iOS course [here](http://www.rosebotics.org/courses), which are generalized versions of [Google's steps](https://developers.google.com/appengine/docs/python/endpoints/consume_ios).\n\n### Step 1 - Add two frameworks\nThe first step is easy.  Add two frameworks to the project:\n\n1. Security.framework\n1. SystemConfiguration.framework\n\n### Step 2 - Add the Cocoa Pod\nAdd this to your pods file\n```ruby\npod 'google-cloud-endpoints-client', :git =\u003e 'https://github.com/rockwotj/google-cloud-endpoints-client.git'\n```\nthen \n```shell\npod install\n```\n\n### Step 3 - Generate the files for your backend\nThis is a two step process\n\n1. Create a file that is called the discovery document\n1. Feed that discovery document to an executable called ServiceGenerator (note, you’ll need to compile that binary from the source code before you can use it!)\n\n\u003cb\u003eCreating the discovery document\u003c/b\u003e\n\nIn the root directory of your appengine project (where app.yaml is located) run the following command (assuming your api is all in one class)\n```shell\nendpointscfg.py get_discovery_doc -f rpc \u003cYOUR API MODULE\u003e.\u003cYOUR API CLASS\u003e\n```\n\nThis should output a file called: \\\u003cYOUR API CLASS\\\u003e.discovery\n\n\u003cb\u003eUsing and compiling the ServiceGenerator\u003c/b\u003e\n\nCheck out [GTL Client library](https://code.google.com/p/google-api-objectivec-client/) using\n```shell\nsvn checkout https://code.google.com/p/google-api-objectivec-client/\n```\nThen open the ServiceGenerator.xcodeproj in X-Code (it’s in this folder… Source → Tools → ServiceGenerator → ServiceGenerator.xcodeproj) and then hit \u003cb\u003eProject-\u003eBuild\u003c/b\u003e or \u003cb\u003e⌘B\u003c/b\u003e\n\nAfter it is built, using the \u003ci\u003efull path of the executable\u003c/i\u003e run this command within the root directory of you appengine project\n```shell\n/your/full/path/to/ServiceGenerator ./\u003cYOUR API CLASS\u003e.discovery --outputDir ./API\n```\nYour entire API was created and placed into the ./API folder. Copy all of the files \u003cb\u003eEXCEPT THE FILE \\\u003cYOUR API CLASS\\\u003e_Sources.m\u003c/b\u003e into X-Code.\n\nAfter that, if you use Swift, like I do, add this import to your Bridging Header\n```objc\n#import \"GTL\u003cYOUR API CLASS\u003e.h\"\n```\n\nThen you're all ready to roll! It is still a lot of work, but at least the pod speeds up one of those steps.\n\n\n## Author\n\nTyler Rockwood (rockwotj)\n\n## License\n\nGoogle Cloud Endpoints Client is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frockwotj%2Fgoogle-cloud-endpoints-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frockwotj%2Fgoogle-cloud-endpoints-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frockwotj%2Fgoogle-cloud-endpoints-client/lists"}