5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Google App Script(GAS)でurlfetchをしようとするとエラーが出たので、解決してみた

Posted at
var response = UrlFetchApp.fetch('https://api.zoom.us/v2/users/' + userId + '/meetings', options);

UrlFetchApp.fetchを使用
zoomのapiを使って、meetingを作成しようとしていたら以下のエラーが!

Exception: You do not have permission to call UrlFetchApp.fetch. Required permissions: https://www.googleapis.com/auth/script.external_request

解決策:
manifestファイルのappsscript.jsonを編集して、
oauthScopesのところに、エラーで出ていたhttps://www.googleapis.com/auth/script.external_request
を追加してあげる。

その後、実行すればmanifestを変更したために、再度googleの許可を求められるので許可してあげると良い。

参考:
https://stackoverflow.com/questions/58359417/you-do-not-have-permission-to-call-urlfetchapp-fetch

5
1
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?