The `OAuthConfig` was gone. Now, must use [`OAuth2 for Apps Script`](https://github.com/googlesamples/apps-script-oauth2) for access to Google API with OAuth. - A post of Google Apps Developer Blog [`Changes to OAuth in Apps Script`](http://googleappsdeveloper.blogspot.co.id/2015/03/changes-to-oauth-in-apps-script.html) at March 4, 2015
The
OAuthConfigwas gone.Now, must use
OAuth2 for Apps Scriptfor access to Google API with OAuth.Changes to OAuth in Apps Scriptat March 4, 2015