You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the API documentation, the function "remove from do not contact" ( link here to documentation ) has, as second parameter, the channel with its default value is 'email'.
But the function in the code (file lib/Api/Contacts.php), line 312 doesnt have the default value public function removeDnc($id, $channel)
should be public function removeDnc($id, $channel = 'email')
according to the documentation
PD: also the documentation is wrong, because the example uses 'addDnc()' instead of 'removeDnc()' $contactApi->addDnc($contactId, $channel);
All the best
The text was updated successfully, but these errors were encountered:
gorkaguerrero
changed the title
Remove from "Do not contact" not have a default parameter
Remove from "Do not contact" don't have a default parameter
Oct 24, 2017
gorkaguerrero
changed the title
Remove from "Do not contact" don't have a default parameter
Remove from "Do not contact" don't have a default value in the parameter
Oct 24, 2017
Hi!
According to the API documentation, the function "remove from do not contact" ( link here to documentation ) has, as second parameter, the channel with its default value is 'email'.
But the function in the code (file lib/Api/Contacts.php), line 312 doesnt have the default value
public function removeDnc($id, $channel)
should be
public function removeDnc($id, $channel = 'email')
according to the documentation
PD: also the documentation is wrong, because the example uses 'addDnc()' instead of 'removeDnc()'
$contactApi->addDnc($contactId, $channel);
All the best
The text was updated successfully, but these errors were encountered: