Skip to content

Commit

Permalink
Resources::GetAddressBookCampaigns returns ApiCampaignList now. Fixes #5
Browse files Browse the repository at this point in the history
  • Loading branch information
romanpitak committed Apr 22, 2015
1 parent 3b09b2a commit f535e81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Resources/IResources.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public function PostAddressBooks(ApiAddressBook $addressBook);
* @param int|XsInt $addressBookId
* @param int $select
* @param int $skip
* @return ApiCampaignList
*/
public function GetAddressBookCampaigns($addressBookId, $select = 1000, $skip = 0);

Expand Down
2 changes: 1 addition & 1 deletion src/Resources/Resources.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function PostAddressBooks(ApiAddressBook $addressBook)
public function GetAddressBookCampaigns($addressBookId, $select = 1000, $skip = 0)
{
$url = sprintf("address-books/%s/campaigns?select=%s&skip=%s", $addressBookId, $select, $skip);
new ApiCampaignList($this->execute($url));
return new ApiCampaignList($this->execute($url));
}

public function DeleteAddressBookContacts($addressBookId)
Expand Down

0 comments on commit f535e81

Please sign in to comment.