Lines Matching refs:xhr
74 var onResponse = function(xhr) { argument
75 if (xhr.status == 200) {
80 var tokens = JSON.parse(xhr.responseText);
88 console.error('Failed to refresh token. Status: ' + xhr.status +
89 ' response: ' + xhr.responseText);
90 onError(remoting.OAuth2Api.interpretXhrStatus_(xhr.status));
101 remoting.xhr.post(remoting.OAuth2Api.getOAuth2TokenEndpoint_(),
122 var onResponse = function(xhr) { argument
123 if (xhr.status == 200) {
128 var tokens = JSON.parse(xhr.responseText);
137 console.error('Failed to exchange code for token. Status: ' + xhr.status +
138 ' response: ' + xhr.responseText);
139 onError(remoting.OAuth2Api.interpretXhrStatus_(xhr.status));
150 remoting.xhr.post(remoting.OAuth2Api.getOAuth2TokenEndpoint_(),
166 var onResponse = function(xhr) { argument
167 if (xhr.status == 200) {
169 var result = JSON.parse(xhr.responseText);
177 console.error('Failed to get email. Status: ' + xhr.status +
178 ' response: ' + xhr.responseText);
179 onError(remoting.OAuth2Api.interpretXhrStatus_(xhr.status));
183 remoting.xhr.get(remoting.OAuth2Api.getOAuth2ApiUserInfoEndpoint_(),