Google Apps Script でのプログラミング等に関する質問スレです
Excel や Access の VBA に不満のあるあなた
web アプリだけでなくクライアントアプリからも利用したいあなた
ローカルなデータベースやファイルだとバックアップに不安のあるあなた
ム板に無かったので立ててみます
Google Apps Script
ttps://developers.google.com/apps-script/
Google Drive API
ttps://developers.google.com/drive/
Getting Started with the Google Data Python Library
ttps://developers.google.com/gdata/articles/python_client_lib
■関連スレ
Google Maps API 質問箱
http://peace.2ch.net/test/read.cgi/tech/1131627583/
Microsoft SkyDrive API
http://peace.2ch.net/test/read.cgi/tech/1385604796/
【GoogleAppsScript】猿92【研究せよ!!!】
http://nozomi.2ch.net/test/read.cgi/php/1398600864/
GoogleAPIってどうよ?
http://nozomi.2ch.net/test/read.cgi/php/1018614427/
Google App Engine for Python 6アプ目
http://nozomi.2ch.net/test/read.cgi/php/1358570953/
Google App Engine for java
http://peace.2ch.net/test/read.cgi/tech/1317639323/
GoogleWebToolkit[GWT]について語ろう
http://nozomi.2ch.net/test/read.cgi/php/1147975874/
探検
【MACRO】Google Apps Script 質問スレ【DRIVE】
2014/06/29(日) 11:07:03.38ID:5HmND7Qc
2014/06/29(日) 11:07:58.27ID:5HmND7Qc
■お役立ちリンク
gdata-python-client
ttps://code.google.com/p/gdata-python-client/
Google Documents List API v1 Developer's Guide: Protocol (古い)
ttps://developers.google.com/google-apps/documents-list/v1/developers_guide_python
ScriptDB
ttps://developers.google.com/apps-script/reference/script-db
ScrptDb
ttp://libro.tuyano.com/index3?id=921001
Using OAuth 2.0 to Access Google APIs
ttps://developers.google.com/accounts/docs/OAuth2
Using OAuth 2.0 for Login (OpenID Connect)
ttps://developers.google.com/accounts/docs/OAuth2Login
ドライブの認証と承認について
ttps://developers.google.com/drive/training/drive-apps/auth/about
OAuth 2.0 認証情報を取得して使用する
ttps://developers.google.com/drive/training/drive-apps/auth/credentials
gdata-python-client
ttps://code.google.com/p/gdata-python-client/
Google Documents List API v1 Developer's Guide: Protocol (古い)
ttps://developers.google.com/google-apps/documents-list/v1/developers_guide_python
ScriptDB
ttps://developers.google.com/apps-script/reference/script-db
ScrptDb
ttp://libro.tuyano.com/index3?id=921001
Using OAuth 2.0 to Access Google APIs
ttps://developers.google.com/accounts/docs/OAuth2
Using OAuth 2.0 for Login (OpenID Connect)
ttps://developers.google.com/accounts/docs/OAuth2Login
ドライブの認証と承認について
ttps://developers.google.com/drive/training/drive-apps/auth/about
OAuth 2.0 認証情報を取得して使用する
ttps://developers.google.com/drive/training/drive-apps/auth/credentials
2014/06/29(日) 11:08:27.65ID:5HmND7Qc
一見すごい乱暴な仕様なんだけど実用上は問題ないということなんだろうな
https://www.youtube.com/watch?v=lEVMu9KE6jk
https://www.youtube.com/watch?v=ezbH4IJynhU
http://www.scoop.it/t/gas
https://www.youtube.com/watch?v=lEVMu9KE6jk
https://www.youtube.com/watch?v=ezbH4IJynhU
http://www.scoop.it/t/gas
2014/06/29(日) 11:09:52.86ID:wFk5OUc5
ノ ゚.ノヽ , /} ...
,,イ`" 、-' `;_' ' ..::::::::::::::...
,-、 _.._ ( (,(~ヽ'~ ..:::::::::::::::::::::::
)'~ レー' 〉 ヽ i`'} .:::::::::::::::::::::::
~つ '-ー、 i | i' ...:::::::::::::::::::::::
/ < / 。/ ! ......::::::::::::::::::::::::: これは>>1乙じゃなくて
/ ~^´ /},-'' ,●::::::::::::::::::::::::::::::::::::
i、 ,i' _,,...,-‐-、/ i :::::::: .:::::::::::::
..ゝ <,,-==、 ,,-,/ .::::::::::: 放射能がうんたら
) {~''~>`v-''`ー゙`'~ ..::::::::: ........::.
{ レ_ノ ..::::::::. ......:::::::::
ノ '' ..::::::: ...::.:...:::::::::
.::::::::: ...:......:::::::::::: .
.:::::::::::. ..... .. ..:::::::::::::::::::::::: :::.
::::::::::::::::.::::::....:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::.. :: ::..
.:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::: ::.
::::::::::::::::: :::::::::::::::::::::::::::::: :::::
.:: ::. :::
,,イ`" 、-' `;_' ' ..::::::::::::::...
,-、 _.._ ( (,(~ヽ'~ ..:::::::::::::::::::::::
)'~ レー' 〉 ヽ i`'} .:::::::::::::::::::::::
~つ '-ー、 i | i' ...:::::::::::::::::::::::
/ < / 。/ ! ......::::::::::::::::::::::::: これは>>1乙じゃなくて
/ ~^´ /},-'' ,●::::::::::::::::::::::::::::::::::::
i、 ,i' _,,...,-‐-、/ i :::::::: .:::::::::::::
..ゝ <,,-==、 ,,-,/ .::::::::::: 放射能がうんたら
) {~''~>`v-''`ー゙`'~ ..::::::::: ........::.
{ レ_ノ ..::::::::. ......:::::::::
ノ '' ..::::::: ...::.:...:::::::::
.::::::::: ...:......:::::::::::: .
.:::::::::::. ..... .. ..:::::::::::::::::::::::: :::.
::::::::::::::::.::::::....:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::.. :: ::..
.:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::: ::.
::::::::::::::::: :::::::::::::::::::::::::::::: :::::
.:: ::. :::
2014/06/29(日) 11:18:48.90ID:wFk5OUc5
Google Drive APIをRuby on Railsから叩く方法
http://www.eisbahn.jp/yoichiro/2012/10/google-drive-api-ruby-on-rails.html
+関連スレ
Windows Azure プログラミング 総合スレ2
http://peace.2ch.net/test/read.cgi/tech/1359450980/
http://www.eisbahn.jp/yoichiro/2012/10/google-drive-api-ruby-on-rails.html
+関連スレ
Windows Azure プログラミング 総合スレ2
http://peace.2ch.net/test/read.cgi/tech/1359450980/
2014/06/29(日) 11:21:28.69ID:vvQOaiPq
クラウドAPIスレにすれば良かったのに
2014/06/29(日) 12:06:09.80ID:tO69Jiz2
あとで見るリスト
Google Apps Unscripted, March 14, 2014
https://www.youtube.com/watch?v=E1CzPtUKWkw
Google Drive SDK: Building Drive apps entirely on the cloud with Google Apps Script
https://www.youtube.com/watch?v=R71oo-5NmPE
Google I/O 2013 - Integrate Google Drive with Google Apps Script
https://www.youtube.com/watch?v=0HVJMIeb3aE
Google I/O 2012 - Storing Data in Google Apps Script
https://www.youtube.com/watch?v=8lJewIWVI5s
State of the Script 2013
https://www.youtube.com/watch?v=b0GkGlG6kQY
Apps Script Crash Course: ContentService
https://www.youtube.com/watch?v=JRGzVdliQOQ
Google I/O 2013 - Use Apps Script to Create Dynamic Google Forms
https://www.youtube.com/watch?v=38H7WpsTD0M
Google Apps Unscripted, March 14, 2014
https://www.youtube.com/watch?v=E1CzPtUKWkw
Google Drive SDK: Building Drive apps entirely on the cloud with Google Apps Script
https://www.youtube.com/watch?v=R71oo-5NmPE
Google I/O 2013 - Integrate Google Drive with Google Apps Script
https://www.youtube.com/watch?v=0HVJMIeb3aE
Google I/O 2012 - Storing Data in Google Apps Script
https://www.youtube.com/watch?v=8lJewIWVI5s
State of the Script 2013
https://www.youtube.com/watch?v=b0GkGlG6kQY
Apps Script Crash Course: ContentService
https://www.youtube.com/watch?v=JRGzVdliQOQ
Google I/O 2013 - Use Apps Script to Create Dynamic Google Forms
https://www.youtube.com/watch?v=38H7WpsTD0M
2014/06/29(日) 12:12:11.08ID:tO69Jiz2
Google I/O 2012 - Use What You Know: HTML and JavaScript in Apps Script
https://www.youtube.com/watch?v=tcl24asytos
Google Apps Unscripted - March 2013
https://www.youtube.com/watch?v=SKZmfgNesKs
Google I/O 2012 - OAuth 2.0 for Identity and Data Access
https://www.youtube.com/watch?v=YLHyeSuBspI
https://www.youtube.com/watch?v=tcl24asytos
Google Apps Unscripted - March 2013
https://www.youtube.com/watch?v=SKZmfgNesKs
Google I/O 2012 - OAuth 2.0 for Identity and Data Access
https://www.youtube.com/watch?v=YLHyeSuBspI
2014/06/29(日) 12:40:23.92ID:tO69Jiz2
Google Drive SDK: Writing your first Drive app in Python
https://www.youtube.com/watch?v=zJVCKvXtHtE
https://www.youtube.com/watch?v=zJVCKvXtHtE
2014/06/29(日) 12:42:11.61ID:tO69Jiz2
Google Drive SDKのクイックスタートをやってみる for Python
http://everyday-01.blogspot.jp/2013/01/google-drive-sdkpython.html
pythonでGoogle Driveにファイル転送
http://good-morning-call.com/2013/01/28/python%E3%81%A7google-drive%E3%81%AB%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E8%BB%A2%E9%80%81/
PythonからGoogle Driveにフォルダを作成する方法
http://d.hatena.ne.jp/kaorumori/20120518/1338218268
GoogleDriveAPIでHTMLファイルを作成し、GoogleドライブでWebサイト公開してアルクマを追いかける
http://d.hatena.ne.jp/thinkAmi/20121218/1355779644
Google DriveAPIでのHTMLファイル作成、GAEでのOAuth認証とコールバック実装
http://d.hatena.ne.jp/thinkAmi/20121229/1356735544
Google Drive APIによるファイル管理 (1-5/5) javascript
http://libro.tuyano.com/index3?id=1166003
Google API Client for Python Documentation
http://api-python-client-doc.appspot.com/
GoogleDriveAPI for Python
https://developers.google.com/drive/quickstart-python
Download Client Libraries
https://developers.google.com/drive/downloads
Google Drive API
https://developers.google.com/drive/
BigQuery
https://developers.google.com/bigquery/what-is-bigquery
Google Cloud Datastore
https://developers.google.com/datastore/
Google Cloud Storage Overview
https://developers.google.com/storage/docs/json_api/
Google Maps Coordinate API
https://developers.google.com/coordinate/
Google Fonts Developer API
https://developers.google.com/fonts/docs/developer_api
Using OAuth 2.0 to Access Google APIs
https://developers.google.com/accounts/docs/OAuth2
http://everyday-01.blogspot.jp/2013/01/google-drive-sdkpython.html
pythonでGoogle Driveにファイル転送
http://good-morning-call.com/2013/01/28/python%E3%81%A7google-drive%E3%81%AB%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E8%BB%A2%E9%80%81/
PythonからGoogle Driveにフォルダを作成する方法
http://d.hatena.ne.jp/kaorumori/20120518/1338218268
GoogleDriveAPIでHTMLファイルを作成し、GoogleドライブでWebサイト公開してアルクマを追いかける
http://d.hatena.ne.jp/thinkAmi/20121218/1355779644
Google DriveAPIでのHTMLファイル作成、GAEでのOAuth認証とコールバック実装
http://d.hatena.ne.jp/thinkAmi/20121229/1356735544
Google Drive APIによるファイル管理 (1-5/5) javascript
http://libro.tuyano.com/index3?id=1166003
Google API Client for Python Documentation
http://api-python-client-doc.appspot.com/
GoogleDriveAPI for Python
https://developers.google.com/drive/quickstart-python
Download Client Libraries
https://developers.google.com/drive/downloads
Google Drive API
https://developers.google.com/drive/
BigQuery
https://developers.google.com/bigquery/what-is-bigquery
Google Cloud Datastore
https://developers.google.com/datastore/
Google Cloud Storage Overview
https://developers.google.com/storage/docs/json_api/
Google Maps Coordinate API
https://developers.google.com/coordinate/
Google Fonts Developer API
https://developers.google.com/fonts/docs/developer_api
Using OAuth 2.0 to Access Google APIs
https://developers.google.com/accounts/docs/OAuth2
2014/06/29(日) 12:45:33.92ID:tO69Jiz2
Google Cloud Datastore: A Fully Managed NoSQL Data Storage Service
https://www.youtube.com/watch?v=fQazhzcC-rg
https://www.youtube.com/watch?v=fQazhzcC-rg
2014/06/29(日) 12:52:51.76ID:tO69Jiz2
Google APIs Client for Python (includes for Google App Engine)
https://developers.google.com/api-client-library/python/
だぶってたらすまそ
https://developers.google.com/api-client-library/python/
だぶってたらすまそ
2014/06/29(日) 14:13:30.73ID:tO69Jiz2
Google Caja
https://developers.google.com/caja/
Overview of Google Apps Script
https://developers.google.com/apps-script/overview
Tutorial: Leveraging Google App Engine services from scripts
https://developers.google.com/apps-script/articles/appengine?hl=ja
Properties Service
https://developers.google.com/apps-script/guides/properties
Google Apps Script : To store data on google Cloud Sorage
http://blog.knoldus.com/2013/01/19/google-apps-script-to-store-data-on-google-cloud-sorage/
Google Apps Script: How to store data on google cloud storage?
http://stackoverflow.com/questions/12744957/google-apps-script-how-to-store-data-on-google-cloud-storage
Google Apps ScriptのPrediction Serviceを使ってみた
http://qiita.com/ttyokoyama/items/1aac9078d34b0daf1d44
BigQuery API の利用 (1-5)
http://libro.tuyano.com/index3?id=901002
https://developers.google.com/caja/
Overview of Google Apps Script
https://developers.google.com/apps-script/overview
Tutorial: Leveraging Google App Engine services from scripts
https://developers.google.com/apps-script/articles/appengine?hl=ja
Properties Service
https://developers.google.com/apps-script/guides/properties
Google Apps Script : To store data on google Cloud Sorage
http://blog.knoldus.com/2013/01/19/google-apps-script-to-store-data-on-google-cloud-sorage/
Google Apps Script: How to store data on google cloud storage?
http://stackoverflow.com/questions/12744957/google-apps-script-how-to-store-data-on-google-cloud-storage
Google Apps ScriptのPrediction Serviceを使ってみた
http://qiita.com/ttyokoyama/items/1aac9078d34b0daf1d44
BigQuery API の利用 (1-5)
http://libro.tuyano.com/index3?id=901002
2014/06/29(日) 14:30:36.95ID:tO69Jiz2
2014/06/29(日) 16:08:56.60ID:tO69Jiz2
https://developers.google.com/apps-script/overview
ここを見ながら最初のスクリプトを書いてみた
Google Drive 上であらかじめ spreadsheet を一つ作って出来たファイルの ID を調べておく
Google Drive の [Create] から [Script] を選択し [Blank Project]
([Script] が無いときは [Create] の一番下の [Connect more apps] を選んで
[検索] apps script で出て来る [Google Apps Script] をインストール)
Script Editor の画面になったら以下のソースをコピペして適当な名前を付けて保存
function createAndSendDocument() {
var sheetId = '上で調べたID';
var ss = SpreadsheetApp.openById(sheetId).getActiveSheet();
var docId = ss.getRange(1, 1, 2, 1);
Logger.log('docId: %s', docId.getValues()[1][0]);
var doc = null;
try{
doc = DocumentApp.openById(docId.getValues()[1][0]);
}catch(e){
doc = DocumentApp.create('_hello_world_');
docId.setValues([['docId'], [doc.getId()]]);
}
doc.getBody().appendParagraph('hello, ' + (new Date()).toISOString());
var url = doc.getUrl();
var subj = doc.getName();
doc.saveAndClose();
var email = Session.getActiveUser().getEmail();
var body = 'created: ' + url;
Logger.log('email: %s, subj: %s, url: %s, body: %s', email, subj, url, body);
GmailApp.sendEmail(email, subj, body);
}
保存出来たら [select function] で createAndSendDocument を選んで実行
ここを見ながら最初のスクリプトを書いてみた
Google Drive 上であらかじめ spreadsheet を一つ作って出来たファイルの ID を調べておく
Google Drive の [Create] から [Script] を選択し [Blank Project]
([Script] が無いときは [Create] の一番下の [Connect more apps] を選んで
[検索] apps script で出て来る [Google Apps Script] をインストール)
Script Editor の画面になったら以下のソースをコピペして適当な名前を付けて保存
function createAndSendDocument() {
var sheetId = '上で調べたID';
var ss = SpreadsheetApp.openById(sheetId).getActiveSheet();
var docId = ss.getRange(1, 1, 2, 1);
Logger.log('docId: %s', docId.getValues()[1][0]);
var doc = null;
try{
doc = DocumentApp.openById(docId.getValues()[1][0]);
}catch(e){
doc = DocumentApp.create('_hello_world_');
docId.setValues([['docId'], [doc.getId()]]);
}
doc.getBody().appendParagraph('hello, ' + (new Date()).toISOString());
var url = doc.getUrl();
var subj = doc.getName();
doc.saveAndClose();
var email = Session.getActiveUser().getEmail();
var body = 'created: ' + url;
Logger.log('email: %s, subj: %s, url: %s, body: %s', email, subj, url, body);
GmailApp.sendEmail(email, subj, body);
}
保存出来たら [select function] で createAndSendDocument を選んで実行
2014/06/29(日) 16:28:54.93ID:tO69Jiz2
web で公開するには
とりあえず上のソースに次の関数を一つ追加しておいて
function doGet(e) {
createAndSendDocument();
return ContentService.createTextOutput(e && e.parameters.index ? e.parameters.index : '');
}
Script Editor で [Publish] -> [Deploy as web app...] を選択
ダイアログが出たら
Project Version: 適当な名前
(とりあえず [Save New Version] を押すとバージョン 1 が作られる)
Execute the app as: me (とりあえず自分だけに公開)
Who has access to the app: Only myself (とりあえず自分だけ ※)
※で Anyone を選んだときは Script 中で更新するファイルにあらかじめアクセス権の設定が別途必要
[your latest code] をクリックすると [***開発専用***の URL] が自動で開かれるので公開前のテストが出来る
[Deploy] を押すと [公開用の URL] が表示されるのでコピーして保存してあらためてブラウザでその URL にアクセス
さらに一度公開したものを更新するときはバージョン番号を上げる必要がある
具体的にはバージョン 2 以降は [Publish] -> [Deploy as web app..] を押す前に
Script Editor の [File] -> [Manage versions...] であらかじめ新しいバージョンを作る必要がある
とりあえず上のソースに次の関数を一つ追加しておいて
function doGet(e) {
createAndSendDocument();
return ContentService.createTextOutput(e && e.parameters.index ? e.parameters.index : '');
}
Script Editor で [Publish] -> [Deploy as web app...] を選択
ダイアログが出たら
Project Version: 適当な名前
(とりあえず [Save New Version] を押すとバージョン 1 が作られる)
Execute the app as: me (とりあえず自分だけに公開)
Who has access to the app: Only myself (とりあえず自分だけ ※)
※で Anyone を選んだときは Script 中で更新するファイルにあらかじめアクセス権の設定が別途必要
[your latest code] をクリックすると [***開発専用***の URL] が自動で開かれるので公開前のテストが出来る
[Deploy] を押すと [公開用の URL] が表示されるのでコピーして保存してあらためてブラウザでその URL にアクセス
さらに一度公開したものを更新するときはバージョン番号を上げる必要がある
具体的にはバージョン 2 以降は [Publish] -> [Deploy as web app..] を押す前に
Script Editor の [File] -> [Manage versions...] であらかじめ新しいバージョンを作る必要がある
2014/06/29(日) 17:48:16.55ID:5HmND7Qc
日記乙
参考になった
参考になった
2014/06/29(日) 18:06:30.40ID:5HmND7Qc
Javascriptを使うのをやめろ:Railsの時代遅れ云々についての結論 - Qiita
http://qiita.com/kaiinui@github/items/dad6180f1910c6a4bfd5
Ruby - Railsが時代に合わなくなってきた - Qiita
http://qiita.com/kaiinui@github/items/2781219340d427543d08
http://qiita.com/kaiinui@github/items/dad6180f1910c6a4bfd5
Ruby - Railsが時代に合わなくなってきた - Qiita
http://qiita.com/kaiinui@github/items/2781219340d427543d08
2014/06/29(日) 18:51:46.06ID:5HmND7Qc
GDG All Hands: Google Apps Script with Arun Nagarajan
https://www.youtube.com/watch?v=l0CCj6ull7s
https://www.youtube.com/watch?v=l0CCj6ull7s
2014/06/30(月) 08:15:01.70ID:94hmBiki
https://developers.google.com/apps-script/quickstart/docs
Try it out / Publish 〜
(SPA)
AngularJSを使ったWebアプリのアーキテクチャ設計
http://qiita.com/zoetro/items/46d2a8b57f2645bb5033
.NET 開発者向け Single Page Application 入門
http://msdn.microsoft.com/ja-jp/magazine/dn605877.aspx
Single Page Application (SPA) を使ってみよう: MVC 4 新機能シリーズ
http://blogs.msdn.com/b/chack/archive/2012/02/28/single-page-application-spa-mvc-4.aspx
ASP.NET MVC 4 Beta で追加された Single Page Application を試す
http://shiba-yan.hatenablog.jp/entry/20120218/1329552642
Try it out / Publish 〜
(SPA)
AngularJSを使ったWebアプリのアーキテクチャ設計
http://qiita.com/zoetro/items/46d2a8b57f2645bb5033
.NET 開発者向け Single Page Application 入門
http://msdn.microsoft.com/ja-jp/magazine/dn605877.aspx
Single Page Application (SPA) を使ってみよう: MVC 4 新機能シリーズ
http://blogs.msdn.com/b/chack/archive/2012/02/28/single-page-application-spa-mvc-4.aspx
ASP.NET MVC 4 Beta で追加された Single Page Application を試す
http://shiba-yan.hatenablog.jp/entry/20120218/1329552642
2014/06/30(月) 08:30:44.90ID:94hmBiki
漏れもメモも貼っとく
DriveSDK/FlowManager.gs
https://github.com/entaq/GoogleAppsScript/blob/master/DriveSDK/FlowManager.gs
OAuth2 Two samples here -
- App Engine Python sample that shows Server Side flow.
- Entirely client side flow with "Sign in with Google+.
These are samples expected to run seperately. For the Server Side flow,
I use raw HTTP requests for illustration purposes only.
Please use libraries and proper verification process outlined here -
https://developers.google.com/accounts/docs/OAuth2Login#validatinganidtoken
https://github.com/entaq/OAuth2Flows
https://github.com/entaq/OAuth2Flows/blob/master/ServerSide.py
https://github.com/entaq/OAuth2Flows/blob/master/ClientSide.html
Google I/O 2012 - OAuth 2.0 for Identity and Data Access
https://www.youtube.com/watch?v=YLHyeSuBspI
ドライブの認証と承認について
https://developers.google.com/drive/training/drive-apps/auth/about
OAuth 2.0 認証情報を取得して使用する
https://developers.google.com/drive/training/drive-apps/auth/credentials
Using OAuth 2.0 to Access Google APIs
https://developers.google.com/accounts/docs/OAuth2
Using OAuth 2.0 for Login (OpenID Connect)
https://developers.google.com/accounts/docs/OAuth2Login
Google Driveの認証情報
GoogleのドキュメントにあるRetrieving and Using OAuth 2.0 Credentialsのサンプルコードのコメントを見ると、
認証情報はjson形式に変換して格納しろと書いてあります。
認証情報のファイル入出力スクリプト
json形式の認証情報を受け取ってファイルに書き込む関数storeJsonCredential()と、
ファイルに保管された認証情報を返すreadJsonCredential()を作りました。
http://good-morning-call.com/2013/01/27/python%E3%81%A7%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E5%85%A5%E5%87%BA%E5%8A%9B/
http://good-morning-call.com/2013/01/28/python%E3%81%A7google-drive%E3%81%AB%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E8%BB%A2%E9%80%81/
DriveSDK/FlowManager.gs
https://github.com/entaq/GoogleAppsScript/blob/master/DriveSDK/FlowManager.gs
OAuth2 Two samples here -
- App Engine Python sample that shows Server Side flow.
- Entirely client side flow with "Sign in with Google+.
These are samples expected to run seperately. For the Server Side flow,
I use raw HTTP requests for illustration purposes only.
Please use libraries and proper verification process outlined here -
https://developers.google.com/accounts/docs/OAuth2Login#validatinganidtoken
https://github.com/entaq/OAuth2Flows
https://github.com/entaq/OAuth2Flows/blob/master/ServerSide.py
https://github.com/entaq/OAuth2Flows/blob/master/ClientSide.html
Google I/O 2012 - OAuth 2.0 for Identity and Data Access
https://www.youtube.com/watch?v=YLHyeSuBspI
ドライブの認証と承認について
https://developers.google.com/drive/training/drive-apps/auth/about
OAuth 2.0 認証情報を取得して使用する
https://developers.google.com/drive/training/drive-apps/auth/credentials
Using OAuth 2.0 to Access Google APIs
https://developers.google.com/accounts/docs/OAuth2
Using OAuth 2.0 for Login (OpenID Connect)
https://developers.google.com/accounts/docs/OAuth2Login
Google Driveの認証情報
GoogleのドキュメントにあるRetrieving and Using OAuth 2.0 Credentialsのサンプルコードのコメントを見ると、
認証情報はjson形式に変換して格納しろと書いてあります。
認証情報のファイル入出力スクリプト
json形式の認証情報を受け取ってファイルに書き込む関数storeJsonCredential()と、
ファイルに保管された認証情報を返すreadJsonCredential()を作りました。
http://good-morning-call.com/2013/01/27/python%E3%81%A7%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E5%85%A5%E5%87%BA%E5%8A%9B/
http://good-morning-call.com/2013/01/28/python%E3%81%A7google-drive%E3%81%AB%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E8%BB%A2%E9%80%81/
2014/06/30(月) 08:33:02.08ID:94hmBiki
2014/06/30(月) 12:07:30.79ID:iAWFXjp6
あがってる情報が古い気がする
2014/06/30(月) 17:39:27.89ID:8wubZZrm
そうでもない。
ただし、資料が多過ぎると見る気を無くす。
>1 乙
ただし、資料が多過ぎると見る気を無くす。
>1 乙
2014/06/30(月) 21:52:39.36ID:Xi/T5ITo
質問です。新しく作ったメニューに対してアクセラレータキーを設定する事はできますか?
2014/07/01(火) 11:06:27.64ID:73ppV3Pt
2014-05-15 Deprecating ScriptDB and Domain Service in Apps Script
http://googleappsdeveloper.blogspot.jp/2014/05/deprecating-scriptdb-and-domain-service.html
Attention Apps Scripters: We are deprecating ScriptDB and the Domain service.
The Domain service is being replaced by the Admin SDK advanced service,
which offers a wider array of data and operations.
ScriptDB has no direct replacement, but the blog post and migration guide list some alternatives.
The ecosystem of cloud data storage options has really taken off,
and I think many of you will be better served by those technologies in the long run.
https://plus.google.com/app/basic/+EricKoleda/posts?cbp=19pxhkiqduurj&sview=25
http://googleappsdeveloper.blogspot.jp/2014/05/deprecating-scriptdb-and-domain-service.html
Attention Apps Scripters: We are deprecating ScriptDB and the Domain service.
The Domain service is being replaced by the Admin SDK advanced service,
which offers a wider array of data and operations.
ScriptDB has no direct replacement, but the blog post and migration guide list some alternatives.
The ecosystem of cloud data storage options has really taken off,
and I think many of you will be better served by those technologies in the long run.
https://plus.google.com/app/basic/+EricKoleda/posts?cbp=19pxhkiqduurj&sview=25
2014/07/01(火) 22:21:16.08ID:Eepx6p70
>>25
アクセラレータキーとは?
アクセラレータキーとは?
28デフォルトの名無しさん
2014/07/02(水) 14:10:02.95ID:2yT8qCgo2014/07/02(水) 15:23:27.83ID:My5/zu3x
難しい質問には答えられません。
2014/07/02(水) 15:26:11.32ID:My5/zu3x
2014/07/02(水) 21:37:25.05ID:bqKflTRz
25です。
スプレッドシートについて、自作したスクリプトをメニューに登録して使っていますが、その機能をキーボードで実行したかっただけです。
メニューのファイルにALT+Fでアクセスするような動きがありますが、そういう機能の実装はどうすればできますか?
スプレッドシートについて、自作したスクリプトをメニューに登録して使っていますが、その機能をキーボードで実行したかっただけです。
メニューのファイルにALT+Fでアクセスするような動きがありますが、そういう機能の実装はどうすればできますか?
32デフォルトの名無しさん
2014/07/03(木) 00:21:32.67ID:DIfIjFzr As @Arun says, this is not supported yet. See and star this issue.
https://code.google.com/p/google-apps-script-issues/issues/detail?id=306
Apps Script only exposes server side events.
Unfortunately, you cannot register client side events like keyboard strokes today.
Please log an issue in our issue tracker
https://code.google.com/p/google-apps-script-issues/issues/list
https://code.google.com/p/google-apps-script-issues/issues/detail?id=306
Apps Script only exposes server side events.
Unfortunately, you cannot register client side events like keyboard strokes today.
Please log an issue in our issue tracker
https://code.google.com/p/google-apps-script-issues/issues/list
レスを投稿する
ニュース
- 【サッカー】「国立ガラガラじゃん!」 「タダ券ばら撒かないんだっけ?」天皇杯決勝、6万7750人収容のスタンドに目立つ空席 [鉄チーズ烏★]
- 中国の渡航自粛、影響は限定的 日本人客が来店しやすく [♪♪♪★]
- 中国「国連安保理の許可なしに日本攻撃可能」 Xで旧敵国条項に言及… ★14 [BFU★]
- ゼレンスキー氏、アメリカの支援失う危険あるとウクライナ国民に演説 米和平案めぐり [1ゲットロボ★]
- 【英FT】国土の大部分を日本の残忍な占領下におかれたという苦しみの記憶を今なお抱え続けている中国 [1ゲットロボ★]
- 台湾有事での集団的自衛権行使に賛成48.8%、「反対」が44.2% ★3 [♪♪♪★]
- 中国、高市早苗を国連に提訴。「国際社会に問う」 [271912485]
- 高市早苗「G20サミット、なめられない服を選びました。外交交渉でマウント取れる服買わないとなぁ」大炎上 [165981677]
- 【高市悲報】観光地から中国人🇨🇳が消え始める。。。。。。。。。。。。。日本人さあ、ほんとにこれでいいのか??? [573041775]
- 【悲報】リュウジ「果てなきスカーレット、金一銭も出せないけどPR動画作ってって言われて受けようと思ったがつまらなすぎて辞めた [517459952]
- 【画像】俺の散歩コースだけどどう思う?
- 【実況】博衣こよりのえちえちゼルダの伝説 ムジュラの仮面🧪 ★7
