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
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
The text was updated successfully, but these errors were encountered:
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,
]
Expected behavior
It should create and return a new recipient
The text was updated successfully, but these errors were encountered: