コード例 #1
0
 /**
  * @param string $email
  * @param string $listName
  *
  * @return array|bool
  *
  * @throws \Bonsi\GetResponse\Newsletter\Exceptions\InvalidNewsletterList
  */
 public function getMember($email, $listName = '')
 {
     $list = $this->lists->findByName($listName);
     //        if (!$this->lastActionSucceeded()) {
     //            return false;
     //        }
     $options = ['query' => ['email' => $email, 'campaign' => ['campaignId' => $list->getId()]], 'fields' => 'name'];
     dd(['response' => $this->getResponse->searchContacts($options)]);
     //        return $this->getResponse->get("lists/{$list->getId()}/members/{$this->getSubscriberHash($email)}");
 }