{"action":"created","issue":{"url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/issues/330","repository_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp","labels_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/issues/330/labels{/name}","comments_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/issues/330/comments","events_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/issues/330/events","html_url":"https://github.com/coderdojo-japan/coderdojo.jp/issues/330","id":325141172,"number":330,"title":"zen.coderdojo.com とその API の調査","user":{"login":"naopontan","id":399910,"avatar_url":"https://avatars2.githubusercontent.com/u/399910?v=4","gravatar_id":"","url":"https://api.github.com/users/naopontan","html_url":"https://github.com/naopontan","followers_url":"https://api.github.com/users/naopontan/followers","following_url":"https://api.github.com/users/naopontan/following{/other_user}","gists_url":"https://api.github.com/users/naopontan/gists{/gist_id}","starred_url":"https://api.github.com/users/naopontan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naopontan/subscriptions","organizations_url":"https://api.github.com/users/naopontan/orgs","repos_url":"https://api.github.com/users/naopontan/repos","events_url":"https://api.github.com/users/naopontan/events{/privacy}","received_events_url":"https://api.github.com/users/naopontan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"naopontan","id":399910,"avatar_url":"https://avatars2.githubusercontent.com/u/399910?v=4","gravatar_id":"","url":"https://api.github.com/users/naopontan","html_url":"https://github.com/naopontan","followers_url":"https://api.github.com/users/naopontan/followers","following_url":"https://api.github.com/users/naopontan/following{/other_user}","gists_url":"https://api.github.com/users/naopontan/gists{/gist_id}","starred_url":"https://api.github.com/users/naopontan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naopontan/subscriptions","organizations_url":"https://api.github.com/users/naopontan/orgs","repos_url":"https://api.github.com/users/naopontan/repos","events_url":"https://api.github.com/users/naopontan/events{/privacy}","received_events_url":"https://api.github.com/users/naopontan/received_events","type":"User","site_admin":false},"assignees":[{"login":"naopontan","id":399910,"avatar_url":"https://avatars2.githubusercontent.com/u/399910?v=4","gravatar_id":"","url":"https://api.github.com/users/naopontan","html_url":"https://github.com/naopontan","followers_url":"https://api.github.com/users/naopontan/followers","following_url":"https://api.github.com/users/naopontan/following{/other_user}","gists_url":"https://api.github.com/users/naopontan/gists{/gist_id}","starred_url":"https://api.github.com/users/naopontan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naopontan/subscriptions","organizations_url":"https://api.github.com/users/naopontan/orgs","repos_url":"https://api.github.com/users/naopontan/repos","events_url":"https://api.github.com/users/naopontan/events{/privacy}","received_events_url":"https://api.github.com/users/naopontan/received_events","type":"User","site_admin":false}],"milestone":null,"comments":14,"created_at":"2018-05-22T04:58:59Z","updated_at":"2018-05-23T05:14:04Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"# 背景\r\n\r\n#314 からの[派生](https://github.com/coderdojo-japan/coderdojo.jp/issues/314#issuecomment-390856860)です。 \r\n\r\n> zen.coderdojo.com とその API の調査\r\nzen.coderdojo.com って何だ？ → 本家っぽい\r\nzen.coderdojo.com にアクセス API に関するリンクが無いか一通り見てみる\r\n見当たらないので zen coderdojo api でググってみる。 https://zen.coderdojo.com/documentation#/api を発見\r\nアカウントがあると情報量が増えそうなのでアカウント作ってみる ← 今ここ\r\n簡単なサンプルと sandbox 的な場所があれば実際に動かしてみたほうが理解早そうだけど、あるかなー？ って感じで調査中\r\n\r\n----\r\n\r\nZen アカウントの方で [アクティブ状態を持っているらしい](https://github.com/coderdojo-japan/coderdojo.jp/issues/310#issuecomment-376125789)ので、API 連携し負担軽減を目指したい。\r\n\r\n例えば「一時的に Dojoが休止となった場合、Dojo管理者が Zen 上でステータスを非アクティブにすれば、 coderdojo.jp でも即反映される」と中間の手間が省けて嬉しい。\r\n\r\n上記も含めて実現可能かを調査する。\r\n\r\n# 関連issue\r\n\r\n#314\r\n#310\r\n\r\n\r\n# TODO\r\n\r\n- [x] API に関する guide や reference が無いか調査\r\n- [ ] アクティブ/非アクティブの取得APIが用意されているか？の確認\r\n  - [ ] zen.coderdojo.com のアカウント作成 & 道場作成\r\n- [ ] 用意されているのであれば、実際に動かして確認する\r\n- [ ] 用意されていなければ、APIとしてはどんな機能が用意されているのか？を軽くレポートする\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/issues/comments/391222636","html_url":"https://github.com/coderdojo-japan/coderdojo.jp/issues/330#issuecomment-391222636","issue_url":"https://api.github.com/repos/coderdojo-japan/coderdojo.jp/issues/330","id":391222636,"user":{"login":"yasulab","id":155807,"avatar_url":"https://avatars1.githubusercontent.com/u/155807?v=4","gravatar_id":"","url":"https://api.github.com/users/yasulab","html_url":"https://github.com/yasulab","followers_url":"https://api.github.com/users/yasulab/followers","following_url":"https://api.github.com/users/yasulab/following{/other_user}","gists_url":"https://api.github.com/users/yasulab/gists{/gist_id}","starred_url":"https://api.github.com/users/yasulab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yasulab/subscriptions","organizations_url":"https://api.github.com/users/yasulab/orgs","repos_url":"https://api.github.com/users/yasulab/repos","events_url":"https://api.github.com/users/yasulab/events{/privacy}","received_events_url":"https://api.github.com/users/yasulab/received_events","type":"User","site_admin":false},"created_at":"2018-05-23T05:14:04Z","updated_at":"2018-05-23T05:14:04Z","author_association":"MEMBER","body":"お、たぶん `stage` っぽい?\r\n\r\n## 取得パラメータのサンプル\r\n\r\n```\r\n  {\r\n    \"entity$\": \"-/cd/dojos\",\r\n    \"id\": \"3a1ef147-d9e7-4398-8c36-7ddf7036e343\",\r\n    \"mysqlDojoId\": null,\r\n    \"dojoLeadId\": \"697c1745-e2ea-4ea7-982f-81852a731275\",\r\n    \"name\": \"Maebashi, Gunma\",\r\n    \"creator\": \"25cc9c31-eff5-4f9e-92ae-cb87702165c5\",\r\n    \"created\": \"2016-10-09T02:16:00.263Z\",\r\n    \"verifiedAt\": \"2016-10-17T13:08:18.974Z\",\r\n    \"verifiedBy\": \"d22d7ac3-acaf-4ba3-a467-cdf337ef4bc1\",\r\n    \"verified\": 1,\r\n    \"needMentors\": 1,\r\n    \"stage\": 3,                 # <== これかな? 🤔💭\r\n    \"mailingList\": 0,\r\n    \"alternativeFrequency\": \"first\",\r\n    \"country\": {\r\n      \"countryName\": \"Japan\",\r\n      \"countryNumber\": 392,\r\n      \"continent\": \"AS\",\r\n      \"alpha2\": \"JP\",\r\n      \"alpha3\": \"JPN\"\r\n    },\r\n    \"county\": {},\r\n    \"state\": {},\r\n    \"city\": {},\r\n    \"place\": {\r\n      \"nameWithHierarchy\": \"Maebashi, Gunma Prefecture\"\r\n    },\r\n    \"coordinates\": \"36.362198485216354, 139.12779092788696\",\r\n    \"geoPoint\": {\r\n      \"lat\": 36.3813523,\r\n      \"lon\": 139.0725053\r\n    },\r\n    \"notes\": \"<p>Suggested Notes:<br />\\n<br />\\nPlease bring:</p>\\n\\n<ul>\\n\\t<li>A pack lunch.</li>\\n\\t<li>A laptop. Borrow one from somebody if needs be.</li>\\n\\t<li><strong>A parent! (Very important). If you are 12 or under, your parent must stay with you during the session.</strong></li>\\n</ul>\\n\\n<p> </p>\\n\",\r\n    \"email\": \"maebashi.jp@coderdojo.com\",\r\n    \"website\": \"https://vtmacs003b.github.io/maebashi.jp/\",\r\n    \"twitter\": null,\r\n    \"googleGroup\": null,\r\n    \"supporterImage\": null,\r\n    \"deleted\": 0,\r\n    \"deletedBy\": null,\r\n    \"deletedAt\": null,\r\n    \"private\": 0,\r\n    \"urlSlug\": \"jp/maebashi-gunma-prefecture/maebashi-gunma\",\r\n    \"continent\": \"AS\",\r\n    \"alpha2\": \"JP\",\r\n    \"alpha3\": \"JPN\",\r\n    \"address1\": \"3-35, minamicho\",\r\n    \"address2\": null,\r\n    \"countryNumber\": 392,\r\n    \"countryName\": \"Japan\",\r\n    \"admin1Code\": null,\r\n    \"admin1Name\": null,\r\n    \"admin2Code\": null,\r\n    \"admin2Name\": null,\r\n    \"admin3Code\": null,\r\n    \"admin3Name\": null,\r\n    \"admin4Code\": null,\r\n    \"admin4Name\": null,\r\n    \"placeGeonameId\": null,\r\n    \"placeName\": \"Maebashi, Gunma Prefecture\",\r\n    \"userInvites\": null,\r\n    \"creatorEmail\": \"vtmacs003b@gmail.com\",\r\n    \"taoVerified\": 0,\r\n    \"expectedAttendees\": null,\r\n    \"facebook\": null,\r\n    \"day\": 7,\r\n    \"startTime\": \"10:00:00\",\r\n    \"endTime\": \"12:00:00\",\r\n    \"frequency\": \"1/m\"\r\n  },\r\n```"}}
{"actor":{"display_login":"yasulab"}}