const app=new AppOnlyClient(BEARER_TOKEN)
ベアラートークンです。
デフォルトはPropertiesService.getUserProperties().getProperty("BEARER_TOKEN")
です。
app.fetch(string,{
method:string,
headers:Object,
payload:Object,
contentType:string,
queryParameters:Object,
oauthParameters:Object,
useIntranet:boolean,
validateHttpsCertificates:boolean,
followRedirects:boolean,
muteHttpExceptions:boolean,
escaping:boolean
})
認証情報を乗せてfetchします
-
fetchするURLです。
-
fetchする際のメソッドです。
デフォルトはGET
です。 -
fetchする際のheaderです。
-
fetchする際のcontentTypeです。
-
urlのクエリーパラメータとして追加されるオブジェクトです。
-
useIntranet:boolean,
validateHttpsCertificates:boolean,
followRedirects:boolean,
muteHttpExceptions:boolean,
escaping:boolean
これらはそのままUrlFetchApp.fetchの第二引数のオブジェクトに渡すのでGASのリファレンスを参照してください。
レスポンスのオブジェクトです。
appのインスタンスメゾットの返り値のTweet
やUser
を操作するClient
を設定します。
app.setClient(Client)
thisを返します。
ツイートを検索します。
- Twitterドキュメントを参照してください。
https://developer.twitter.com/en/docs/twitter-api/tweets/lookup/api-reference/get-tweets-id
取得したいツイートのidです。
- Twitterドキュメントを参照してください。
取得したいユーザーのユーザーネームです
Twitterドキュメントを参照してください。 です
ベアラートークンを取得します。
https://developer.twitter.com/en/docs/authentication/api-reference/token
デフォルトはPropertiesService.getUserProperties().getProperty("API_KEY")
です
デフォルトはPropertiesService.getUserProperties().getProperty("API_SECRET")
です
ベアラートークンです。