From f94b3eb38302e525d3ac14aeacc774269298fa2e Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Fri, 24 Aug 2018 08:28:23 -0400 Subject: [PATCH] remove email-settings JSON, fix e on scope selection --- src/email-settings-v2.json | 151 ------------------------------------- src/gam.py | 2 +- 2 files changed, 1 insertion(+), 152 deletions(-) delete mode 100644 src/email-settings-v2.json diff --git a/src/email-settings-v2.json b/src/email-settings-v2.json deleted file mode 100644 index 55268c82..00000000 --- a/src/email-settings-v2.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "kind": "discovery#restDescription", - "discoveryVersion": "v1", - "id": "email-settings:v2", - "name": "email-settings", - "version": "v2", - "revision": "20161013", - "title": "Email Settings API", - "description": "Lets you manage Google Apps Email Settings", - "ownerDomain": "google.com", - "ownerName": "Google", - "icons": { - "x16": "http://www.google.com/images/icons/product/search-16.gif", - "x32": "http://www.google.com/images/icons/product/search-32.gif" - }, - "documentationLink": "https://developers.google.com/admin-sdk/email-settings", - "protocol": "rest", - "baseUrl": "https://apps-apis.google.com/", - "rootUrl": "https://apps-apis.google.com/", - "servicePath": "/a/feeds/emailsettings/2.0/", - "parameters": { - "v": { - "type": "string", - "description": "GData Version", - "default": "2.0", - "enum": [ - "2.0" - ], - "enumDescriptions": [ - "GData 2.0" - ], - "location": "query" - }, - "alt": { - "type": "string", - "description": "Data format for the response.", - "default": "json", - "enum": [ - "json" - ], - "enumDescriptions": [ - "Responses with Content-Type of application/json" - ], - "location": "query" - }, - "quotaUser": { - "type": "string", - "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.", - "location": "query" - }, - "prettyPrint": { - "type": "boolean", - "description": "Returns response with indentations and line breaks.", - "default": "true", - "location": "query" - } - }, - "auth": { - "oauth2": { - "scopes": { - "https://apps-apis.google.com/a/feeds/emailsettings/2.0/": { - "description": "Manage email settings" - } - } - } - }, - "schemas": { - "Delegate": { - "id": "Delegate", - "type": "object", - "description": "a delegate.", - "properties": { - "apps$property": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "property name" - }, - "value": { - "type": "string", - "description": "organization name value" - } - } - } - } - }, - "Delegates": { - "id": "feed", - "type": "object", - "description": "List of delegates.", - "properties": { - "entry": { - "type": "object", - "description": "list of delegates", - "items": { - "$ref": "Delegate" - } - } - } - } - }, - "resources": { - "delegates": { - "methods": { - "get": { - "id": "email-settings.delegates.get", - "path": "{domainName}/{delegator}/delegation", - "httpMethod": "GET", - "parameters": { - "domainName": { - "type": "string", - "required": "true", - "location": "path" - }, - "delegator": { - "type": "string", - "required": "true", - "location": "path" - } - }, - "response": { - "$ref": "Delegates" - } - }, - "delete": { - "id": "email-settings.delegates.delete", - "path": "{domainName}/{delegator}/delegation/{delegate}", - "httpMethod": "DELETE", - "parameters": { - "domainName": { - "type": "string", - "required": "true", - "location": "path" - }, - "delegator": { - "type": "string", - "required": "true", - "location": "path" - }, - "delegate": { - "type": "string", - "required": "true", - "location": "path" - } - } - } - } - } - } -} diff --git a/src/gam.py b/src/gam.py index e92cde93..141bf76a 100755 --- a/src/gam.py +++ b/src/gam.py @@ -11999,7 +11999,7 @@ def doRequestOAuth(login_hint=None): flags = cmd_flags(noLocalWebserver=GC_Values[GC_NO_BROWSER]) scopes = getScopesFromUser() if scopes is None: - return + systemErrorExit(0, u'') client_id, client_secret = getOAuthClientIDAndSecret() login_hint = getValidateLoginHint(login_hint) flow = oauth2client.client.OAuth2WebServerFlow(client_id=client_id,