From ea6f49f7be743e668acb84a1396d855f656a98e1 Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Thu, 31 Dec 2015 22:54:07 -0800 Subject: [PATCH] Have OAuthInfo print API scope table --- src/gam.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gam.py b/src/gam.py index 8ed94a9a..475feb5a 100755 --- a/src/gam.py +++ b/src/gam.py @@ -8699,8 +8699,11 @@ def getUsersToModify(entity_type=None, entity=None, silent=False, return_uids=Fa return full_users def OAuthInfo(): - # TODO eventually would be good if this did something to test admin-selected scopes - pass + print u'API Scopes' + for api in sorted(GM_Globals[GM_GAMSCOPES].keys()): + print u' API: {0}'.format(api) + for scope in GM_Globals[GM_GAMSCOPES][api]: + print u' {0}'.format(scope) UBER_SCOPES = { u'gmail-v1': [u'https://mail.google.com/'],