Commit dde403ac authored by Shakarim Sapa's avatar Shakarim Sapa

- Testing

parent 01c503c7
...@@ -106,6 +106,12 @@ class UnisenderAPI { ...@@ -106,6 +106,12 @@ class UnisenderAPI {
); );
} }
public function getLists(){
return $this->callMethod(
'getLists'
);
}
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',
......
...@@ -28,4 +28,9 @@ echo 'Рассылка: '.((isset($newCampaign)) ? $newCampaign : 'Not found'); ...@@ -28,4 +28,9 @@ echo 'Рассылка: '.((isset($newCampaign)) ? $newCampaign : 'Not found');
echo '<br>'; echo '<br>';
echo 'Список: '.((isset($newListId)) ? $newListId : 'Not found'); echo 'Список: '.((isset($newListId)) ? $newListId : 'Not found');
echo '<br>'; echo '<br>';
echo 'Сообщение: '.((isset($newMessageId)) ? $newMessageId : 'Not found'); echo 'Сообщение: '.((isset($newMessageId)) ? $newMessageId : 'Not found');
\ No newline at end of file echo '<br>';
echo '---------------------------';
echo "<pre>";
print_r(Json::decode($sender->getLists()));
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