コード例 #1
0
 public function loadEAPM($eapmBean)
 {
     parent::loadEAPM($eapmBean);
     if (!empty($eapmBean->api_data)) {
         $api_data = json_decode(base64_decode($eapmBean->api_data), true);
         if (isset($api_data['fbSession'])) {
             $this->fbSession = $api_data['fbSession'];
         }
     }
 }
コード例 #2
0
 public function quickCheckLogin()
 {
     $reply = parent::quickCheckLogin();
     if (!$reply['success']) {
         return $reply;
     }
     if (!empty($this->oauth_token) && !empty($this->oauth_secret)) {
         return array('success' => true);
     } else {
         return array('success' => false, 'errorMessage' => translate('LBL_ERR_NO_TOKEN', 'EAPM'));
     }
 }
コード例 #3
0
ファイル: ExtAPIWebEx.php プロジェクト: jglaine/sugar761-ent
 public function checkLogin($eapmBean = null)
 {
     if (!empty($eapmBean->url)) {
         $eapmBean->url = $this->fixUrl($eapmBean->url);
     }
     $reply = parent::checkLogin($eapmBean);
     if (!$reply['success']) {
         return $reply;
     }
     $doc = new SimpleXMLElement($this->getuser_xml);
     $this->addAuthenticationInfo($doc);
     $doc->body->bodyContent->webExId = $this->account_name;
     $reply = $this->postMessage($doc);
     return $reply;
 }