{"id":20205984,"url":"https://github.com/23andme/api-example-go","last_synced_at":"2026-04-08T19:51:50.783Z","repository":{"id":5093676,"uuid":"6256348","full_name":"23andMe/api-example-go","owner":"23andMe","description":"An example API app in Go that tests a user's WNT16 and FAM3C genes for unbreakable bones.","archived":false,"fork":false,"pushed_at":"2020-01-27T21:36:04.000Z","size":255,"stargazers_count":5,"open_issues_count":2,"forks_count":4,"subscribers_count":66,"default_branch":"master","last_synced_at":"2025-08-20T12:49:21.921Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/23andMe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2012-10-17T05:04:45.000Z","updated_at":"2020-01-27T21:36:07.000Z","dependencies_parsed_at":"2022-08-18T21:20:33.331Z","dependency_job_id":null,"html_url":"https://github.com/23andMe/api-example-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/23andMe/api-example-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/23andMe%2Fapi-example-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/23andMe%2Fapi-example-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/23andMe%2Fapi-example-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/23andMe%2Fapi-example-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/23andMe","download_url":"https://codeload.github.com/23andMe/api-example-go/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/23andMe%2Fapi-example-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31571601,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-14T05:20:26.915Z","updated_at":"2026-04-08T19:51:50.763Z","avatar_url":"https://github.com/23andMe.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"api-example-bones\n=================\n\nAn example API app in Go that checks a user's WNT16 and FAM3C genes for unbreakable bones.\nClone the repository, and look at the ```.env``` file to see what environment variables must be set.\n\nYour env's ```REDIRECT_URI``` must match the one on your developer dashboard at https://api.23andme.com/dashboard/. Locally you'll probably want ```http://localhost:PORT/receive_code/```.\n\nHeroku\n===\nI host the app on Heroku. \n- Setup Go on Heroku: http://mmcgrana.github.com/2012/09/getting-started-with-go-on-heroku.html.\n- Set environment variables on Heroku: https://devcenter.heroku.com/articles/config-vars. \n\nI change ```CLIENT_ID``` and ```CLIENT_SECRET``` to match my API credentials, and delete the ```PORT``` variable because Heroku sets it automatically.\n\n```\nheroku config:set CLIENT_ID=xxx\nheroku config:set CLIENT_SECRET=xxx\nheroku config:set COOKIE_SECRET=xxx\nheroku config:set SESSION_NAME=api-example-bones\nheroku config:set SESSION_ACCESS_TOKEN_KEY=xxx\nheroku config:set REDIRECT_URI=http://yourapp.com/receive_code/\nheroku config:unset PORT\n```\n\nLocal\n===\n\nJust set your environment variables, build the program, and run it:\n\n```go\ngo build\n./api-example-bones\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F23andme%2Fapi-example-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F23andme%2Fapi-example-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F23andme%2Fapi-example-go/lists"}