Skip to content

Instantly share code, notes, and snippets.

View tany3's full-sized avatar
😇
I may be slow to respond.

Masahiro Taniuchi tany3

😇
I may be slow to respond.
  • Tokyo, Japan
View GitHub Profile
@tany3
tany3 / twitter.gs
Created September 17, 2017 07:59 — forked from kijtra/twitter.gs
Google Apps Script での 「oAuthConfig」のサポート終了後用の Twitter API スクリプト。「OAuth1」ライブラリ(ID:Mb2Vpd5nfD3Pz-_a-39Q4VfxhMjh3Sh48)が必要。
// 最初にこの関数を実行し、ログに出力されたURLにアクセスしてOAuth認証する
function twitterAuthorizeUrl() {
Twitter.oauth.showUrl();
}
// OAuth認証成功後のコールバック関数
function twitterAuthorizeCallback(request) {
return Twitter.oauth.callback(request);
}