Beispiel #1
0
 }, function(fn) {
     pullout(req, 'string', function(error, body) {
         code = body;
         
         if (error)
             callback(error);
         else
             fn();
     });
 });
Beispiel #2
0
 req = https.request(GithubAuth, function(res) {
     pullout(res, 'string', function(error, body) {
         var parsed, token;
         
         if (!error) {
             parsed  =  qs.parse(body);
             
             if (parsed)
                 token   =  parsed.access_token;
         }
         
         callback(error, token);
     });
 });