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
looks like the following code with using a wrong key:
$client = new Client('nope');
$voiceResource = new VoiceResource($client);
// Setting up and testing params
$voiceParams = new VoiceParams($message, implode(',', $recipients));
$voiceParams->setRingtime(60);
$voiceResource->validate($voiceParams);
$voiceResponse = $voiceResource->call($voiceParams);
results in:
[2024-11-28 09:25:49] local.ERROR: Seven\Api\Resource\Voice\Voice::__construct(): Argument #1 ($data) must be of type object, int given, called in .../seven.io/api/src/Resource/Voice/VoiceResource.php on line 31
Shouldn't there be some kind of error handling?
Greets Michael
The text was updated successfully, but these errors were encountered:
looke like in Client.php, line 117 if ($isSuccess) return $res; should be if ($isSuccess && is_object($res)) return $res;. Then it's working so far, not best solution.
Hi guys,
looks like the following code with using a wrong key:
results in:
[2024-11-28 09:25:49] local.ERROR: Seven\Api\Resource\Voice\Voice::__construct(): Argument #1 ($data) must be of type object, int given, called in .../seven.io/api/src/Resource/Voice/VoiceResource.php on line 31
Shouldn't there be some kind of error handling?
Greets Michael
The text was updated successfully, but these errors were encountered: