Skip to content
This repository has been archived by the owner on Jan 9, 2021. It is now read-only.

Error in Add/Edit subscriber documentation #84

Open
ferran-romero opened this issue Nov 7, 2019 · 0 comments
Open

Error in Add/Edit subscriber documentation #84

ferran-romero opened this issue Nov 7, 2019 · 0 comments

Comments

@ferran-romero
Copy link

ferran-romero commented Nov 7, 2019

In the code provided to document Add/Edit subscriber:

`
// if you want use another adding mode, create it. It's optional too and by default "AddAndUpdate"
$mode = Mode::ADD_AND_UPDATE();

// you can add more than one subscriber to request
$addOrEditResponse = $api->subscribers()->addOrEdit([$subscriberData], $options, $mode);
`

But it seems there's only two parameters in the method:

`
/**
* Add or edit subscriber
*
* @param SubscriberInfo[] $subscriberInfos Subscribers information list
* @param Options|null $options Options
*
* @return SubscribersPostResponse Response
*/
public function addOrEdit(array $subscriberInfos, Options $options = null): SubscribersPostResponse
{
return new SubscribersPostResponse(
$this->requestSender->send(new SubscribersPostRequest($subscriberInfos, $options))
);
}

`

Please, consider to update documentation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant