public function setAuthInfo($authInfo)
 {
     parent::setAuthInfo($authInfo);
     $this->username = isset($authInfo['username']) ? $authInfo['username'] : null;
     $this->password = isset($authInfo['password']) ? $authInfo['password'] : null;
     $this->sitename = isset($authInfo['sitename']) ? $authInfo['sitename'] : null;
 }
 public function setAuthInfo($authInfo)
 {
     parent::setAuthInfo($authInfo);
     $this->apiKey = isset($authInfo['apiKey']) ? $authInfo['apiKey'] : null;
     $this->responseKey = isset($authInfo['responseKey']) ? $authInfo['responseKey'] : null;
     $this->accessToken = isset($authInfo['accessToken']) ? $authInfo['accessToken'] : null;
     if ($this->apiKey && $this->responseKey && is_null($this->accessToken)) {
         $this->authForAccessToken();
     }
 }
 /**
  * Set internal auth information. If authCode is not provided, one will be
  * requested from the JoinMe API. The authCode can be reused and is valid 
  * until another one is requested, so you may persist it somewhere rather 
  * than the user's actual password. However, the JoinMe API does not have 
  * a concept of an application token as well, so if the user uses another 
  * service to access their account it will invalidate the authcode you have
  * stored.
  * 
  * @param array $authInfo
  */
 public function setAuthInfo($authInfo)
 {
     parent::setAuthInfo($authInfo);
     $this->email = isset($authInfo['email']) ? $authInfo['email'] : null;
     $this->password = isset($authInfo['password']) ? $authInfo['password'] : null;
     $this->authCode = isset($authInfo['authCode']) ? $authInfo['authCode'] : null;
     if ($this->email && $this->password && is_null($this->authCode)) {
         $this->requestAuthCode();
     }
 }
 public function setAuthInfo($authInfo)
 {
     parent::setAuthInfo($authInfo);
     $this->baseUrl = isset($authInfo['baseUrl']) ? $this->checkAndFixBaseUrl($authInfo['baseUrl']) : null;
     $this->salt = isset($authInfo['salt']) ? $authInfo['salt'] : null;
 }