Closed iAmmar7 closed 1 year ago
@iAmmar7 I'm getting this error when trying create-call-amd.php
:
Fatal error: Uncaught TypeError: Twilio\Rest\Api\V2010\Account\CallInstance::__construct(): Argument #2 ($payload) must be of type array, null given, called in /usr/src/myapp/src/Rest/Api/V2010/Account/CallList.php on line 69 and defined in /usr/src/myapp/vendor/twilio/sdk/src/Twilio/Rest/Api/V2010/Account/CallInstance.php:70
Stack trace:
#0 /usr/src/myapp/src/Rest/Api/V2010/Account/CallList.php(69): Twilio\Rest\Api\V2010\Account\CallInstance->__construct(Object(SignalWire\Rest\Api\V2010), NULL, 'YourProjectID')
#1 /usr/src/myapp/examples/laml/create-call-amd.php(11): SignalWire\Rest\Api\V2010\Account\CallList->create('+1+++', '+1+++', Object(Twilio\Values))
#2 {main}
thrown in /usr/src/myapp/vendor/twilio/sdk/src/Twilio/Rest/Api/V2010/Account/CallInstance.php on line 70
@iAmmar7 I'm getting this error when trying
create-call-amd.php
:
I think you forgot to pass the data (project id, token, space url, from and to numbers).
@iAmmar7 I was testing with webhook.site. I confirm that with the correct URL it works
ref: https://github.com/signalwire/cloud-product/issues/7238