tag:blogger.com,1999:blog-2726962037909566105.post8174328819266500470..comments2023-03-20T06:39:01.305-07:00Comments on Warehouseman: Getting started with Google Cloud Datastore for Google Apps ScriptAnonymoushttp://www.blogger.com/profile/02012541462397001228noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-2726962037909566105.post-82961049380524880622015-11-20T04:47:28.583-08:002015-11-20T04:47:28.583-08:00Hi, I have stopped working with Google products, a...Hi, I have stopped working with Google products, and can not help with problems like this. You do need to be quite knowledgeable about HTTP protocol when attempting to set up interactions with remote services from an HTML page. There are security risks with that, that you cannot impose on third-parties who might load your page into their browser. The 'SAMEORIGIN' setting shows that that is the cause of the problems you are having.Anonymoushttps://www.blogger.com/profile/02012541462397001228noreply@blogger.comtag:blogger.com,1999:blog-2726962037909566105.post-41375973366068343842015-11-20T00:59:35.999-08:002015-11-20T00:59:35.999-08:00This example don't working ("Authenticate...This example don't working ("Authenticate to datastore") by reson: <br /><br />Refused to display 'https://accounts.google.com/o/oauth2/auth?response_type=code&client_id=6987…bTcNu.........val_prompt=force' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'.<br />Anonymoushttps://www.blogger.com/profile/14631389667038675466noreply@blogger.comtag:blogger.com,1999:blog-2726962037909566105.post-33702962423691744362015-10-28T16:04:13.100-07:002015-10-28T16:04:13.100-07:00Thank you for the thorough tutorial. Frankly, I wa...Thank you for the thorough tutorial. Frankly, I was not able to follow it to the end.<br />Fortunately, now there exists a straightforward method of authorizing to Google services with OAuth2 and fetchUrl(). See instructions at the very bottom here:<br />https://github.com/googlesamples/apps-script-oauth2<br />and an example here:<br />https://github.com/googlesamples/apps-script-oauth2/blob/master/samples/GoogleServiceAccount.gs<br /><br />Basically, all you have to do is to (create and) download the secret key for "Service account" in your project Developer's console (go to API&Auth->Credentials, Create at the top of the page), convert it to PEM with<br />openssl pkcs12 -in path.p12 -out newfile.key.pem -nocerts -nodes<br />also, copy "e-mail address" from the same page and use these.<br />It works! No hassle with going back and forward between web-pages. Actually, no web pages at all!AlexanderA.https://www.blogger.com/profile/00234404459477654871noreply@blogger.comtag:blogger.com,1999:blog-2726962037909566105.post-50250744343459039932015-09-03T07:04:27.511-07:002015-09-03T07:04:27.511-07:00This is a great tutorial, thanks Martin. Can I ask...This is a great tutorial, thanks Martin. Can I ask though, things seemed to have changed slightly in the datastore since you wrote this. For example, I don't seem to have NameSpace anymore. Do you have an updated tutorial at all, or would you be willing to help me fix it? Thanks :)KvNhttps://www.blogger.com/profile/01803476737929201769noreply@blogger.comtag:blogger.com,1999:blog-2726962037909566105.post-88128619091410782682014-12-06T06:52:01.317-08:002014-12-06T06:52:01.317-08:00I.ll try to get to that. Thanks for the tip.I.ll try to get to that. Thanks for the tip.Anonymoushttps://www.blogger.com/profile/02012541462397001228noreply@blogger.comtag:blogger.com,1999:blog-2726962037909566105.post-42478629291596983132014-12-04T16:58:01.559-08:002014-12-04T16:58:01.559-08:00Yea! I got through it!
Didn't really know what...Yea! I got through it!<br />Didn't really know what I was doing - but the level of detail was great. I read the intro (sort of) but didn't really get it (sort of) until the conclusion.<br />Two suggestions (everybody's a critic)<br /><br />1. more in the notes that accompany the slides explaining what is going on.<br /><br />2. emphasize the need to save the script after making changes for execution to proceed successfully. Not obvious to a newbie (like me).<br /><br />Thanks truly for taking the time to do this and share it.<br />Mike Adamshttps://www.blogger.com/profile/07668921188303229094noreply@blogger.comtag:blogger.com,1999:blog-2726962037909566105.post-34282035878802816322014-12-04T16:48:37.092-08:002014-12-04T16:48:37.092-08:00This comment has been removed by the author.Mike Adamshttps://www.blogger.com/profile/07668921188303229094noreply@blogger.com