{"id":13496748,"url":"https://github.com/googleapis/google-api-swift-client","last_synced_at":"2025-04-09T14:31:51.714Z","repository":{"id":42046254,"uuid":"170616999","full_name":"googleapis/google-api-swift-client","owner":"googleapis","description":"A client generator for APIs described by Google's API Discovery Format.","archived":false,"fork":false,"pushed_at":"2024-01-15T12:34:46.000Z","size":272,"stargazers_count":79,"open_issues_count":10,"forks_count":20,"subscribers_count":47,"default_branch":"main","last_synced_at":"2025-03-24T07:57:01.643Z","etag":null,"topics":["experimental"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/googleapis.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-14T02:55:19.000Z","updated_at":"2025-03-24T07:36:20.000Z","dependencies_parsed_at":"2024-10-31T12:43:31.576Z","dependency_job_id":null,"html_url":"https://github.com/googleapis/google-api-swift-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgoogle-api-swift-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgoogle-api-swift-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgoogle-api-swift-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googleapis%2Fgoogle-api-swift-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googleapis","download_url":"https://codeload.github.com/googleapis/google-api-swift-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248055187,"owners_count":21040135,"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":["experimental"],"created_at":"2024-07-31T19:01:58.668Z","updated_at":"2025-04-09T14:31:51.149Z","avatar_url":"https://github.com/googleapis.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"# Swift REST Client Generator for Google APIs\n\nThis project contains Swift code that generates a API clients from Discovery Documents\nproduced by the [Google API Discovery Service](https://developers.google.com/discovery/).\n\nIt is experimental work-in-progress, but provides a good start\nat calling many Google APIs from Swift. Our focus is on supporting\ncalls from server-side and command-line Swift applications, but\ncalls from any platform with Swift support should be possible.\n\n## Usage\n\nRunning `google-api-swift-generator` will list all available Google APIs and generate a Swift client file in your current directory.\n\n```sh\n./google-api-swift-generator\n  1) Abusive Experience Report API\n  2) Accelerated Mobile Pages (AMP) URL API\n  3) Access Approval API\n  4) Access Context Manager API\n  5) Ad Exchange Buyer API\n  6) Ad Exchange Buyer API II\n  7) Ad Experience Report API\n  8) Admin Reports API\n  9) AdSense Management API\n 10) AdSense Host API\n 11) G Suite Alert Center API\n 12) Google Analytics API\n[...]\n165) Web Security Scanner API\n166) YouTube Data API\n167) YouTube Analytics API\n168) YouTube Reporting API\nPlease enter the number corresponding to the service or 0 to exit\n\u003e 166\nwrote /private/var/folders/km/h0s9nvsd1n58sbrn2wjsf1h80000gn/T/youtubev3.swift\n```\n\nIt is also possible to run the generator with Discovery Documents downloaded from the Discovery Service by passing the json file as argument:\n\nRunning the following creates a file named `discovery-document-filename.swift` in your current directory.\n\n```sh\ngoogle-api-swift-generator \u003cdiscovery-document-filename.json\u003e\n```\n\nThis project also includes an experimental CLI generator that\ngenerates command-line interfaces for APIs. These CLIs depend\non the generated client libraries and are produced with the\n`google-cli-swift-generator` command. Running the following\nwrites a CLI `main.swift` to standard output:\n\n```sh\ngoogle-cli-swift-generator \u003cdiscovery-document-filename.json\u003e\n```\n\nThe [Examples](Examples) directory contains several example \nclients including scripts for generating both client libraries and \nCLIs.\n\n## Contributing\n\nWe'd love to collaborate on this. See [CONTRIBUTING.md](CONTRIBUTING.md) for details.\n\n## Copyright\n\nCopyright 2019, Google Inc.\n\n## License\n\nReleased under the Apache 2.0 license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleapis%2Fgoogle-api-swift-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgoogleapis%2Fgoogle-api-swift-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgoogleapis%2Fgoogle-api-swift-client/lists"}