{"action":"created","issue":{"url":"https://api.github.com/repos/nerdsfornature/changebrackets/issues/5","labels_url":"https://api.github.com/repos/nerdsfornature/changebrackets/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/nerdsfornature/changebrackets/issues/5/comments","events_url":"https://api.github.com/repos/nerdsfornature/changebrackets/issues/5/events","html_url":"https://github.com/nerdsfornature/changebrackets/issues/5","id":99351387,"number":5,"title":"Auth error on Heroku install because OAuth now required","user":{"login":"danrademacher","id":1423200,"avatar_url":"https://avatars.githubusercontent.com/u/1423200?v=3","gravatar_id":"","url":"https://api.github.com/users/danrademacher","html_url":"https://github.com/danrademacher","followers_url":"https://api.github.com/users/danrademacher/followers","following_url":"https://api.github.com/users/danrademacher/following{/other_user}","gists_url":"https://api.github.com/users/danrademacher/gists{/gist_id}","starred_url":"https://api.github.com/users/danrademacher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danrademacher/subscriptions","organizations_url":"https://api.github.com/users/danrademacher/orgs","repos_url":"https://api.github.com/users/danrademacher/repos","events_url":"https://api.github.com/users/danrademacher/events{/privacy}","received_events_url":"https://api.github.com/users/danrademacher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-06T04:35:09Z","updated_at":"2015-08-06T06:02:29Z","closed_at":null,"body":"Just realized that the automated harvesting scripts for Rim Fire and Morgan Fire have been failing since late June. Errors like this:\r\n```\r\n2015-08-06T04:30:20.182828+00:00 app[scheduler.5183]: /app/vendor/bundle/ruby/2.0.0/gems/google_drive-0.3.9/lib/google_drive/session.rb:93:in `rescue in login': Authentication failed for changebrackets@gmail.com: Response code 404 for post https://www.google.com/accounts/ClientLogin: https://developers.google.com/accounts/docs/AuthForInstalledApps (GoogleDrive::AuthenticationError)\r\n```\r\n\r\nhttps://developers.google.com/identity/protocols/AuthForInstalledApps\r\n![image](https://cloud.githubusercontent.com/assets/1423200/9103964/c9b2a886-3bb9-11e5-954f-49861e7bd94f.png)\r\n"},"comment":{"url":"https://api.github.com/repos/nerdsfornature/changebrackets/issues/comments/128258209","html_url":"https://github.com/nerdsfornature/changebrackets/issues/5#issuecomment-128258209","issue_url":"https://api.github.com/repos/nerdsfornature/changebrackets/issues/5","id":128258209,"user":{"login":"kueda","id":22691,"avatar_url":"https://avatars.githubusercontent.com/u/22691?v=3","gravatar_id":"","url":"https://api.github.com/users/kueda","html_url":"https://github.com/kueda","followers_url":"https://api.github.com/users/kueda/followers","following_url":"https://api.github.com/users/kueda/following{/other_user}","gists_url":"https://api.github.com/users/kueda/gists{/gist_id}","starred_url":"https://api.github.com/users/kueda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kueda/subscriptions","organizations_url":"https://api.github.com/users/kueda/orgs","repos_url":"https://api.github.com/users/kueda/repos","events_url":"https://api.github.com/users/kueda/events{/privacy}","received_events_url":"https://api.github.com/users/kueda/received_events","type":"User","site_admin":false},"created_at":"2015-08-06T06:02:29Z","updated_at":"2015-08-06T06:02:29Z","body":"I think it's fixable, but it will be a bit fussy. Basically we're going to\r\n\r\n1. Set up a project in the Google Developer Console and create a Service Account: https://developers.google.com/identity/protocols/OAuth2ServiceAccount\r\n1. Grant the service account's fake email address edit permissions for the sheet\r\n1. Attempt to use Google Ruby client to retrieve an access token for the service account: https://developers.google.com/api-client-library/ruby/auth/service-accounts\r\n1. Use the access token to start the Google Drive session instead of the deprecated username/password flow: https://github.com/gimite/google-drive-ruby\r\n\r\nI can look into this some time in the next week or so, but you need to decide if you want a N4N Google account to own that Developer Console project. If you do, you should make that and add me as a collaborator. If you don't care I can try to set it up."}}