@@ -24,6 +24,11 @@ code editor:
2424Alternatively, you can copy and paste the files in the [ ` /dist ` ] ( dist )  directory
2525directly into your script project.
2626
27+ If you are [ setting explicit scopes] ( https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes ) 
28+ in your manifest file, ensure that the following scope is included:
29+ 
30+ *  ` https://www.googleapis.com/auth/script.external_request ` 
31+ 
2732## Redirect URI  
2833
2934Before you can start authenticating against an OAuth2 provider, you usually need
@@ -169,11 +174,11 @@ function makeRequest() {
169174}
170175``` 
171176
172- ## Compatiblity  
177+ ## Compatibility  
173178
174179This library was designed to work with any OAuth2 provider, but because of small
175180differences in how they implement the standard it may be that some APIs
176- aren't compatible. If you find an API that it does 't work with, open an issue or
181+ aren't compatible. If you find an API that it doesn 't work with, open an issue or
177182fix the problem yourself and make a pull request against the source code.
178183
179184## Other features  
@@ -260,3 +265,12 @@ registered with the OAuth provider is updated to use the format
260265` https://script.google.com/macros/d/{SCRIPT ID}/usercallback ` .
261266*  Version 22 - Renamed ` Service.getToken_() `  to ` Service.getToken() ` , since
262267there OAuth providers that return important information in the token response.
268+ 
269+ ## Troubleshooting  
270+ 
271+ ### You do not have permission to call fetch  
272+ 
273+ You are [ setting explicit scopes] ( https://developers.google.com/apps-script/concepts/scopes#setting_explicit_scopes ) 
274+ in your manifest file but have forgotten to add the 
275+ ` https://www.googleapis.com/auth/script.external_request `  scope used by this library
276+ (and eventually the ` UrlFetchApp `  request you are making to an API).
0 commit comments