-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
$onfleet = new Onfleet("valid_api_key",6000);
$data = [
"name" => "User Name",
"phone" => "+1XXXXXX", #valid phone number
"notes" => " ",
"skipPhoneNumberValidation" => false,
"skipSMSNotifications" => false,
]
$recipient = $onfleet->recipients->create($data);
TypeError: Onfleet\errors\HttpError::__construct(): Argument #2 ($cause) must be of type string, array given, called in /home/my_project_folder/vendor/onfleet/php-onfleet/src/Methods.php on line 147
Expected behavior
It should create and return a new recipient
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working