{"id":15917511,"url":"https://github.com/takuya/ruby-oauth-google-gmail","last_synced_at":"2025-04-03T11:41:51.742Z","repository":{"id":136551601,"uuid":"469622684","full_name":"takuya/ruby-oauth-google-gmail","owner":"takuya","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-09T15:06:14.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T01:14:04.056Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/takuya.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-14T07:23:35.000Z","updated_at":"2022-03-14T07:39:26.000Z","dependencies_parsed_at":"2024-07-08T05:50:11.490Z","dependency_job_id":null,"html_url":"https://github.com/takuya/ruby-oauth-google-gmail","commit_stats":{"total_commits":5,"total_committers":2,"mean_commits":2.5,"dds":"0.19999999999999996","last_synced_commit":"705f269ca7119107c53a7ed2319eb76794533357"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fruby-oauth-google-gmail","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fruby-oauth-google-gmail/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fruby-oauth-google-gmail/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/takuya%2Fruby-oauth-google-gmail/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/takuya","download_url":"https://codeload.github.com/takuya/ruby-oauth-google-gmail/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246998099,"owners_count":20866690,"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-06T18:11:08.897Z","updated_at":"2025-04-03T11:41:51.715Z","avatar_url":"https://github.com/takuya.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ruby-oauth-google-gmail\n\nGMail api を使うために Google Account をOAuthして、access_tokenを取得する\n\n## start\n\n```shell\nbundle install \nbundle exec ruby oauth-gmail-localhost.rb\n```\n\n\n## GCP のアプリケーション制限事項\n\n認証情報→OAuthのDesktop クライアントを作成で、Client Secretは生成される。\n\nCopyCodeでコピペで動かす方式は、非推奨になった。\n\n`OOB_URI = \"urn:ietf:wg:oauth:2.0:oob\"`\n\n```\nbundle exec ruby oauth-gmail-copy-code.rb\n```\nただし、OAuth同意画面で「内部」で「テスト」で「テストユーザ」を指定すると動く。\n\nコピーコードで動かす場合の情報は、なかなかたどり着かないのでメモとして残す。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fruby-oauth-google-gmail","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftakuya%2Fruby-oauth-google-gmail","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftakuya%2Fruby-oauth-google-gmail/lists"}