docs: function detectAccount(token, cb) {
  	//console.log("checking account");
  	var options = {
  						'method': 'GET',
  						'hostname': 'api.ciscospark.com',
  						'path': '/v1/people/me',
  						'headers': {'authorization': 'Bearer ' + token}
  					};
  	var req = https.request(options, function (response) {
  		var chunks = [];
  		response.on('data', function (chunk) {
  			chunks.push(chunk);
  		});
  		response.on("end", function () {
              switch (response.statusCode) {
                  case 200:
                      break; // we're good, let's proceed
              
                  case 401:
                      debug("Webex Teams authentication failed: 401, bad token");
                      cb(new Error("response status: " + response.statusCode + ", bad token"), null, null);
                      return;
  
                  default: 
                      debug("could not retreive Webex Teams account, status code: " + response.statusCode);
                      cb(new Error("response status: " + response.statusCode), null, null);
                      return;
              }
  				
  			// Robustify
  			var payload = JSON.parse(Buffer.concat(chunks));
  			if (!payload.emails) {
                  debug("could not retreive Webex Teams account, unexpected payload");
  				cb(new Error("unexpected payload: not json"), null, null);
                  return;
  			}
  			var email = payload.emails[0];
  			if (!email) {
                  debug("could not retreive Webex Teams account, unexpected payload: no email");
  				cb(new Error("unexpected payload: no email"), null, null);
                  return;
  			}
  
  			// Check if email corresponds to a bot
  			var splitted = email.split("@");
  			if (!splitted || (splitted.length != 2)) {
                  debug("could not retreive Spark account, malformed email");
  				cb(new Error("unexpected payload: malformed email"), null, null);
                  return;
  			}
              var domain = splitted[1];
              // [COMPATIBILITY] Keeping sparkbot.io for backward compatibility
  			if (('webex.bot' === domain) || ('sparkbot.io' === domain)) {
  				debug("bot account detected, name: " + payload.displayName);
  				cb(null, "machine", payload);
                  return;	
  			} 
  
  			debug("human account detected, name: " + payload.displayName);
  			cb(null, "human", payload);
  		});
  	});
  	req.on('error', function(err) {
  		debug("cannot find a Webex Teams account for specified token, error: " + err);
  		cb(new Error("cannot find Webex Teams account for specified token"), null, null);
  	});
  	req.end();
  }