Commit 9d4a2e66 authored by Shakarim Sapa's avatar Shakarim Sapa

- Testing

parent dde403ac
...@@ -112,6 +112,16 @@ class UnisenderAPI { ...@@ -112,6 +112,16 @@ class UnisenderAPI {
); );
} }
public function getContactCount($listId){
return $this->callMethod(
'getContactCount',
[
'list_id' => $listId,
'params[search]' => 'email'
]
);
}
public function createEmailMessage($sender_name, $sender_email, $subject, $body, $list_id){ public function createEmailMessage($sender_name, $sender_email, $subject, $body, $list_id){
return $this->callMethod( return $this->callMethod(
'createEmailMessage', 'createEmailMessage',
......
...@@ -30,7 +30,10 @@ echo 'Список: '.((isset($newListId)) ? $newListId : 'Not found'); ...@@ -30,7 +30,10 @@ echo 'Список: '.((isset($newListId)) ? $newListId : 'Not found');
echo '<br>'; echo '<br>';
echo 'Сообщение: '.((isset($newMessageId)) ? $newMessageId : 'Not found'); echo 'Сообщение: '.((isset($newMessageId)) ? $newMessageId : 'Not found');
echo '<br>'; echo '<br>';
echo '---------------------------';
echo "<pre>"; echo "<pre>";
print_r(Json::decode($sender->getLists())); print_r(Json::decode($sender->getLists()));
echo "</pre>"; echo "</pre>";
echo '<br>';
echo "<pre>";
print_r(Json::decode($sender->get()));
echo "</pre>";
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment