This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const consumerKey = 'XXXXXXXXXX' | |
const consumerSecret = 'XXXXXXXXXXXXX' | |
const client = TwitterClient.getInstance(consumerKey, consumerSecret) | |
function main () { | |
const accountNames = ['XXXXXXX']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const consumerKey = 'XXXXXXXXXXXXXXXXXXXXXX' | |
const consumerSecret = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' | |
// 認証用インスタンス | |
var twitter = TwitterWebService.getInstance( | |
consumerKey, // 作成したアプリケーションのConsumer Key | |
consumerSecret // 作成したアプリケーションのConsumer Secret |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const CONSUMER_KEY = '***'; | |
const CONSUMER_SECRET = '***'; | |
const client = TwitterClient2.getInstance(CONSUMER_KEY, CONSUMER_SECRET) | |
/** | |
* メイン処理 | |
*/ | |
function main() { | |
// ↓のシートを参考に |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const consumerKey = 'XXXXXXXXXX' | |
const consumerSecret = 'XXXXXXXXXXXXX' | |
const client = TwitterClient.getInstance(consumerKey, consumerSecret) | |
function main () { | |
const accountNames = ['XXXXXXX']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const consumerKey = 'XXXXXXXXXX' | |
const consumerSecret = 'XXXXXXXXXXXXX' | |
const client = TwitterClient.getInstance(consumerKey, consumerSecret) | |
function main () { | |
const accountNames = ['XXXXXXX']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function retweetLatest () { | |
const accountNames = []; // アカウント名を入れてください | |
for (let i in accountNames) { | |
const accountName = accountNames[i]; | |
const includeRT = false // RTを含むか(他のユーザーのツイートのRTも再度RTします) | |
const retweetCount = 5 // 直近何件のツイートをRTするか | |
const tweetIds = client.pickupTweetsLatest(accountName, includeRT, retweetCount); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function main () { | |
// 最新のツイートのツイートIDを取得する | |
const accountName = '~~~~~~~' // 対象のアカウントの @~~~~ の部分を記入 | |
const params = { | |
includeRT: false, // RTを含むか(他のユーザーのツイートのRTも再度RTします) | |
includeReply: false, // リプライを含むか | |
includeURL: false, // URLを含むか | |
count: 20, // 直近何件のツイートをRTするか | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ③最新のツイートをリツイートする | |
*/ | |
function retweetLatest () { | |
// 最新のツイートのツイートIDを取得する | |
const accountName = 'belltreeszk' // 対象のアカウントの @~~~~ の部分を記入 | |
const includeRT = false // RTを含むか(他のユーザーのツイートのRTも再度RTします) | |
const retweetCount = 3 // 直近何件のツイートをRTするか | |
const tweetIds = client.pickupTweetsLatest(accountName, includeRT, retweetCount); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ③最新のツイートをリツイートする | |
*/ | |
function retweetLatest () { | |
// 最新のツイートのツイートIDを取得する | |
const accountName = 'belltreeszk'; // 対象のアカウントの @~~~~ の部分を記入 | |
const includeRT = false; // RTを含むか(他のユーザーのツイートのRTも再度RTします) | |
const retweetCount = 3; // 直近何件のツイートをRTするか | |
const ignoreWords = ['#駆け出しエンジニアと繋がりたい', '#今日の積み上げ']; // 無視したい単語を入力する。カンマ(,)区切りで複数指定OK | |
const tweetIds = client.pickupTweetsLatest(accountName, includeRT, retweetCount); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const CONSUMER_KEY = 'XXXXXXX'; | |
const CONSUMER_SECRET = 'XXXXXXXXXXXX'; | |
const client = TwitterClient2.getInstance(CONSUMER_KEY, CONSUMER_SECRET) | |
/** | |
* メイン処理 [全フォロー取得する方法] | |
*/ |
NewerOlder