Lines Matching refs:req

51 	var req = new mxXmlRequest(this.redirectUri + '?getState=1', null, 'GET');
53 req.send(mxUtils.bind(this, function(req) argument
55 if (req.getStatus() >= 200 && req.getStatus() <= 299)
57 this.authenticateStep2(req.getText(), success, error);
61 error(req);
78 …var req = new mxXmlRequest(this.redirectUri + '?state=' + encodeURIComponent('cId=' + this.clientI…
80 req.send(mxUtils.bind(this, function(req) argument
82 if (req.getStatus() >= 200 && req.getStatus() <= 299)
84 _token = JSON.parse(req.getText()).access_token;
96 if (req.getStatus() == 401) // (Unauthorized) [e.g, invalid refresh token]
188 GitLabClient.prototype.executeRequest = function(req, success, error, ignoreNotFound) argument
202 req.setRequestHeaders = function(request, params)
209 req.send(mxUtils.bind(this, function()
215 if ((req.getStatus() >= 200 && req.getStatus() <= 299) ||
216 (ignoreNotFound && req.getStatus() == 404))
218 success(req);
220 else if (req.getStatus() === 401)
240 else if (req.getStatus() === 403)
246 var temp = JSON.parse(req.getText());
260 else if (req.getStatus() === 404)
262 error({message: this.getErrorMessage(req, mxResources.get('fileNotFound'))});
264 else if (req.getStatus() === 400)
271 error({status: req.getStatus(), message: this.getErrorMessage(req,
272 mxResources.get('error') + ' ' + req.getStatus())});
345 var req = new mxXmlRequest(url, null, 'HEAD');
347 this.executeRequest(req, mxUtils.bind(this, function()
349 if (req.getStatus() == 200)
359 if (req.getStatus() == 404)
408 var req = new mxXmlRequest(url, null, 'GET');
410 this.executeRequest(req, mxUtils.bind(this, function(req) argument
414 cb(this.getFileContent(JSON.parse(req.getText())));
434 var req = new mxXmlRequest(url + rnd, null, 'GET');
436 this.executeRequest(req, mxUtils.bind(this, function(req) argument
440 success(this.createGitLabFile(org, repo, ref, JSON.parse(req.getText()), asLibrary, refPos));
572 …his.writeFile(org, repo, ref, path, message, data, last_commit_id, mxUtils.bind(this, function(req) argument
576 var msg = JSON.parse(req.getText());
668 var req = new mxXmlRequest(url, JSON.stringify(entity), method);
670 this.executeRequest(req, mxUtils.bind(this, function(req) argument
672 success(req);
692 …his.writeFile(org, repo, ref, path, message, data, last_commit_id, mxUtils.bind(this, function(req) argument
917 var req = new mxXmlRequest(this.baseUrl + '/projects/' + encodeURIComponent(org + '/' + repo) +
945 this.executeRequest(req, mxUtils.bind(this, function(req) argument
969 var files = JSON.parse(req.getText());
1055 var req = new mxXmlRequest(this.baseUrl + '/projects/' + encodeURIComponent(org + '/' + repo) +
1083 this.executeRequest(req, mxUtils.bind(this, function(req) argument
1098 var branches = JSON.parse(req.getText());
1209 var req = new mxXmlRequest(this.baseUrl + '/groups?per_page=100', null, 'GET');
1211 this.executeRequest(req, mxUtils.bind(this, function(req) argument
1213 callback(JSON.parse(req.getText()));
1221 …var req = new mxXmlRequest(this.baseUrl + '/groups/' + group.id + '/projects?per_page=100', null, …
1223 this.executeRequest(req, mxUtils.bind(this, function(req) argument
1225 callback(group, JSON.parse(req.getText()));
1239 var req = new mxXmlRequest(this.baseUrl + '/users/' + this.user.id + '/projects?per_page=' +
1242 this.executeRequest(req, mxUtils.bind(this, function(req) argument
1244 var repos = JSON.parse(req.getText());