{"id":7537,"date":"2021-03-10T00:02:47","date_gmt":"2021-03-10T05:02:47","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=7537"},"modified":"2021-06-03T20:40:14","modified_gmt":"2021-06-04T01:40:14","slug":"google-oauth-stuff","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=7537","title":{"rendered":"Google OAUTH Stuff"},"content":{"rendered":"<p>Reminder to self &#8212; when you set up a desktop app with OAUTH to use the Google APIs &#8230; you have to hit the authorization URL from the computer running the code. That means, for my calendar scraper, that I need to do X-redirection from the server &amp; run the script. Firefox launches &amp; the flow actually completes. Attempting to hit the URL from <em>my <\/em>computer yields a connection failure to the https:\/\/localhost:SomePort at the end of the workflow.<\/p>\n<p>Move token.pickle to backup file, run getCalendarEvents.py with X-redirection so auth can be processed through web form.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Reminder to self &#8212; when you set up a desktop app with OAUTH to use the Google APIs &#8230; you have to hit the authorization URL from the computer running the code. That means, for my calendar scraper, that I need to do X-redirection from the server &amp; run the script. Firefox launches &amp; the &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[45,1307,1308,1309,664],"class_list":["post-7537","post","type-post","status-publish","format-standard","hentry","category-coding","tag-coding","tag-google","tag-google-api","tag-google-calendar-api","tag-python"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/7537","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7537"}],"version-history":[{"count":3,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/7537\/revisions"}],"predecessor-version":[{"id":7918,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/7537\/revisions\/7918"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}