{"action":"created","issue":{"url":"https://api.github.com/repos/SenseTW/sensetw/issues/303","repository_url":"https://api.github.com/repos/SenseTW/sensetw","labels_url":"https://api.github.com/repos/SenseTW/sensetw/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/SenseTW/sensetw/issues/303/comments","events_url":"https://api.github.com/repos/SenseTW/sensetw/issues/303/events","html_url":"https://github.com/SenseTW/sensetw/issues/303","id":368010176,"node_id":"MDU6SXNzdWUzNjgwMTAxNzY=","number":303,"title":"BE: Map image and image upload","user":{"login":"hychen","id":38706,"node_id":"MDQ6VXNlcjM4NzA2","avatar_url":"https://avatars0.githubusercontent.com/u/38706?v=4","gravatar_id":"","url":"https://api.github.com/users/hychen","html_url":"https://github.com/hychen","followers_url":"https://api.github.com/users/hychen/followers","following_url":"https://api.github.com/users/hychen/following{/other_user}","gists_url":"https://api.github.com/users/hychen/gists{/gist_id}","starred_url":"https://api.github.com/users/hychen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hychen/subscriptions","organizations_url":"https://api.github.com/users/hychen/orgs","repos_url":"https://api.github.com/users/hychen/repos","events_url":"https://api.github.com/users/hychen/events{/privacy}","received_events_url":"https://api.github.com/users/hychen/received_events","type":"User","site_admin":false},"labels":[{"id":927664614,"node_id":"MDU6TGFiZWw5Mjc2NjQ2MTQ=","url":"https://api.github.com/repos/SenseTW/sensetw/labels/feature","name":"feature","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":{"login":"pm5","id":119645,"node_id":"MDQ6VXNlcjExOTY0NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/119645?v=4","gravatar_id":"","url":"https://api.github.com/users/pm5","html_url":"https://github.com/pm5","followers_url":"https://api.github.com/users/pm5/followers","following_url":"https://api.github.com/users/pm5/following{/other_user}","gists_url":"https://api.github.com/users/pm5/gists{/gist_id}","starred_url":"https://api.github.com/users/pm5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pm5/subscriptions","organizations_url":"https://api.github.com/users/pm5/orgs","repos_url":"https://api.github.com/users/pm5/repos","events_url":"https://api.github.com/users/pm5/events{/privacy}","received_events_url":"https://api.github.com/users/pm5/received_events","type":"User","site_admin":false},"assignees":[{"login":"pm5","id":119645,"node_id":"MDQ6VXNlcjExOTY0NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/119645?v=4","gravatar_id":"","url":"https://api.github.com/users/pm5","html_url":"https://github.com/pm5","followers_url":"https://api.github.com/users/pm5/followers","following_url":"https://api.github.com/users/pm5/following{/other_user}","gists_url":"https://api.github.com/users/pm5/gists{/gist_id}","starred_url":"https://api.github.com/users/pm5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pm5/subscriptions","organizations_url":"https://api.github.com/users/pm5/orgs","repos_url":"https://api.github.com/users/pm5/repos","events_url":"https://api.github.com/users/pm5/events{/privacy}","received_events_url":"https://api.github.com/users/pm5/received_events","type":"User","site_admin":false},{"login":"wenchen","id":959457,"node_id":"MDQ6VXNlcjk1OTQ1Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/959457?v=4","gravatar_id":"","url":"https://api.github.com/users/wenchen","html_url":"https://github.com/wenchen","followers_url":"https://api.github.com/users/wenchen/followers","following_url":"https://api.github.com/users/wenchen/following{/other_user}","gists_url":"https://api.github.com/users/wenchen/gists{/gist_id}","starred_url":"https://api.github.com/users/wenchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wenchen/subscriptions","organizations_url":"https://api.github.com/users/wenchen/orgs","repos_url":"https://api.github.com/users/wenchen/repos","events_url":"https://api.github.com/users/wenchen/events{/privacy}","received_events_url":"https://api.github.com/users/wenchen/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/SenseTW/sensetw/milestones/14","html_url":"https://github.com/SenseTW/sensetw/milestone/14","labels_url":"https://api.github.com/repos/SenseTW/sensetw/milestones/14/labels","id":3692522,"node_id":"MDk6TWlsZXN0b25lMzY5MjUyMg==","number":14,"title":"M15: 10/23-11/05 (9days) －Full History","description":"這個 milestone 主要會完成 full history，和支援行銷。\r\n\r\n👉 Design： 為了之後的 mobile design ，會先做產品的 interaction map。\r\n👉 Develop：\r\n    1) Edge 連線即將要出現箭頭跟說明文字\r\n    2) 開發可以顯示編輯紀錄的 Full History。（目前尚未支援即時協作）\r\n👉 Marketing:\r\n    1) Google Tag Manager setting\r\n    2) 工具行銷計畫\r\n👉 活動：10/31 （三）在台南好想工作室有議題小聚","creator":{"login":"aelcenganda","id":9480974,"node_id":"MDQ6VXNlcjk0ODA5NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/9480974?v=4","gravatar_id":"","url":"https://api.github.com/users/aelcenganda","html_url":"https://github.com/aelcenganda","followers_url":"https://api.github.com/users/aelcenganda/followers","following_url":"https://api.github.com/users/aelcenganda/following{/other_user}","gists_url":"https://api.github.com/users/aelcenganda/gists{/gist_id}","starred_url":"https://api.github.com/users/aelcenganda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aelcenganda/subscriptions","organizations_url":"https://api.github.com/users/aelcenganda/orgs","repos_url":"https://api.github.com/users/aelcenganda/repos","events_url":"https://api.github.com/users/aelcenganda/events{/privacy}","received_events_url":"https://api.github.com/users/aelcenganda/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":5,"state":"open","created_at":"2018-09-27T06:26:28Z","updated_at":"2018-10-30T02:16:53Z","due_on":"2018-11-05T08:00:00Z","closed_at":null},"comments":14,"created_at":"2018-10-09T01:47:22Z","updated_at":"2018-10-30T07:49:10Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"# Job Story\r\nWhen I share a map to social media,\r\nI want to have attractive og image for the link,\r\nSo that it can attract more people to click into the map.\r\n\r\n# Success Criteria\r\n1. Only map owner can upload a photo to a map and edit map details.\r\n\r\n\r\n# Prerequisites\r\n\r\nThis depends on #305\r\n\r\n# Out of Scope\r\n2. Automatically generate the map whole picture photo for og image\r\n"},"comment":{"url":"https://api.github.com/repos/SenseTW/sensetw/issues/comments/434202879","html_url":"https://github.com/SenseTW/sensetw/issues/303#issuecomment-434202879","issue_url":"https://api.github.com/repos/SenseTW/sensetw/issues/303","id":434202879,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDIwMjg3OQ==","user":{"login":"wenchen","id":959457,"node_id":"MDQ6VXNlcjk1OTQ1Nw==","avatar_url":"https://avatars1.githubusercontent.com/u/959457?v=4","gravatar_id":"","url":"https://api.github.com/users/wenchen","html_url":"https://github.com/wenchen","followers_url":"https://api.github.com/users/wenchen/followers","following_url":"https://api.github.com/users/wenchen/following{/other_user}","gists_url":"https://api.github.com/users/wenchen/gists{/gist_id}","starred_url":"https://api.github.com/users/wenchen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wenchen/subscriptions","organizations_url":"https://api.github.com/users/wenchen/orgs","repos_url":"https://api.github.com/users/wenchen/repos","events_url":"https://api.github.com/users/wenchen/events{/privacy}","received_events_url":"https://api.github.com/users/wenchen/received_events","type":"User","site_admin":false},"created_at":"2018-10-30T07:49:10Z","updated_at":"2018-10-30T07:49:10Z","author_association":"CONTRIBUTOR","body":"目前完成初步版本\r\n\r\n```\r\n//取得 Signed URL\r\n// POST\r\n//        filename: 檔案名稱\r\n//.       contentType: 檔案類型(非常重要)\r\n// Response: Signed URL\r\nsigned_url=`curl -X POST -H \"Content-Type:application/json\"  -d '{\"filename\":\"test.png\", \"contentType\": \"image/png\"}' https://us-central1-ggv-notetool.cloudfunctions.net/imgGetSignedUrl`\r\n\r\n//上傳到 Google Cloud Storage\r\n// PUT FILE\r\n// Header: Content-Type 檔案類型 (必須與上面吻合)\r\ncurl -X PUT --upload-file test.png -H \"Content-Type: image/png\" \"$signed_url\"\r\n\r\n// 回報完成上傳\r\n// POST\r\n//        signedURL 把上面的 signed URL 帶入\r\n// Response: 圖片的 url \r\nresults=`curl -X POST -H \"Content-Type:application/json\"  -d '{\"signedURL\":\"'\"$signed_url\"'\"}' https://us-central1-ggv-notetool.cloudfunctions.net/imgCompletedUpload`\r\n\r\necho $results;\r\n```"}}
{"actor":{"display_login":"wenchen"}}