コード例 #1
0
ファイル: MGP25.php プロジェクト: maikealame/whatsapi
 /**
  * {@inheritdoc}
  */
 public function syncContacts(array $contacs, array $delete = null)
 {
     $this->gateway()->sendSync($contacs, $delete);
     $result = $this->session->pull();
     if ($result && !empty($result->existing)) {
         $contacs = [];
         foreach ($result->existing as $key => $value) {
             $contacs[] = str_replace('+', '', $key);
         }
         $this->subscribe($contacs);
     }
     return $result;
 }
コード例 #2
0
ファイル: MGP25.php プロジェクト: shinichi81/whatsapi-1
 /**
  * {@inheritdoc}
  */
 public function syncContacts(array $contacs, array $delete = null)
 {
     $this->gateway()->sendSync($contacs, $delete);
     return $this->session->pull();
 }