{"id":20146836,"url":"https://github.com/seanabrahams/google-api-elixir-client","last_synced_at":"2025-04-09T19:35:32.879Z","repository":{"id":62429854,"uuid":"74159648","full_name":"seanabrahams/google-api-elixir-client","owner":"seanabrahams","description":"Elixir library for accessing Google APIs.","archived":false,"fork":false,"pushed_at":"2019-05-08T14:26:55.000Z","size":457,"stargazers_count":12,"open_issues_count":6,"forks_count":8,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-29T18:21:50.525Z","etag":null,"topics":["elixir"],"latest_commit_sha":null,"homepage":"","language":"Elixir","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/seanabrahams.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-18T19:22:28.000Z","updated_at":"2023-09-01T10:49:39.000Z","dependencies_parsed_at":"2022-11-01T20:08:18.577Z","dependency_job_id":null,"html_url":"https://github.com/seanabrahams/google-api-elixir-client","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanabrahams%2Fgoogle-api-elixir-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanabrahams%2Fgoogle-api-elixir-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanabrahams%2Fgoogle-api-elixir-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seanabrahams%2Fgoogle-api-elixir-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seanabrahams","download_url":"https://codeload.github.com/seanabrahams/google-api-elixir-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248098310,"owners_count":21047413,"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":["elixir"],"created_at":"2024-11-13T22:26:17.825Z","updated_at":"2025-04-09T19:35:32.858Z","avatar_url":"https://github.com/seanabrahams.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Google API Client for Elixir\n\nElixir library for accessing Google APIs.\n\nOnly the following APIs are supported:\n\n* Analytics (partial)\n* Knowledge Graph Search API\n* Maps Time Zone API\n* Places Autocomplete\n* Nearby Places Search\n\nPRs are welcome for more APIs.\n\n## Installation\n\n1. Add google_api_client to your list of dependencies in `mix.exs`:\n\n```elixir\n  def deps do\n    [{:google_api_client, \"~\u003e 1.1\"}]\n  end\n```\n\nYou will need a Google Developers Console project.\n\n1. Go to the [Google Developers Console](https://console.developers.google.com/project).\n2. Click Create Project, enter a name, and click Create.\n3. Once inside your project, enable access to the Google APIs you want this project to have access to (Library -\u003e Search -\u003e Enable).\n\nFor key based requests:\n1. Create Credentials (API Key)\n2. Add the following to your Elixir app's configuration:\n\n```elixir\n  config :google_api_client,\n    api_key: \"Your API key\"\n```\n\nFor Ouath based requests:\n1. Implement oauth to obtain a user's token (see:\n   https://developers.google.com/identity/protocols/OAuth2WebServer)\n2. Pass the access token to methods which require oauth\n\n## Usage\n\n```elixir\nresults = Google.Apis.KnowledgeGraph.search(\"elixir\")\nresults[\"itemListElement\"] # List of results\n\n# See https://developers.google.com/knowledge-graph/reference/rest/v1/ for a\n# full description of what's contained in results\n\nGoogle.Apis.Maps.TimeZone.get(location: {-33.86,151.20})\n# =\u003e %{\"dstOffset\" =\u003e 3600, \"rawOffset\" =\u003e 36000, \"status\" =\u003e \"OK\", \"timeZoneId\" =\u003e \"Australia/Sydney\", \"timeZoneName\" =\u003e \"Australian Eastern Daylight Time\"}\nGoogle.Apis.Places.autocomplete(\"poz\", language: \"pl\")\nGoogle.Apis.Places.Nearby.get({-33.86,151.20}, radius: 50)\n\nalias Google.Apis.Analytics.Accounts\nAccounts.list(\"a_valid_oauth_token\")\n\nalias Google.Apis.Analytics.WebProperties\nWebProperties.get(\"a_valid_oauth_token\", account_id, web_property_id)\nWebProperties.insert(\"a_valid_oauth_token\", account_id, resource)\nWebProperties.list(\"a_valid_oauth_token\", account_id)\nWebProperties.patch(\"a_valid_oauth_token\", account_id, web_property_id, resource)\nWebProperties.update(\"a_valid_oauth_token\", account_id, web_property_id, resource)\n\nalias Google.Apis.Analytics.Views\nViews.delete(\"a_valid_oauth_token\", account_id, web_property_id, profile_id)\nViews.get(\"a_valid_oauth_token\", account_id, web_property_id, profile_id)\nViews.insert(\"a_valid_oauth_token\", account_id, web_property_id, resource)\nViews.list(\"a_valid_oauth_token\", account_id, web_property_id)\nViews.patch(\"a_valid_oauth_token\", account_id, web_property_id, profile_id, resource)\nViews.update(\"a_valid_oauth_token\", account_id, web_property_id, profile_id, resource)\n\nGoogle.Apis.??? # Submit a PR\n```\n\n# Special Thanks / Contributors\n\n* Daniel Upton @elkelk\n* AJ Gregory @aj-gregory\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanabrahams%2Fgoogle-api-elixir-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseanabrahams%2Fgoogle-api-elixir-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseanabrahams%2Fgoogle-api-elixir-client/lists"}