Closed dragonmantank closed 4 years ago
This shows how to update an existing call with an NCCO transfer, instead of using the \Nexmo\Call\Transfer class.
\Nexmo\Call\Transfer
This also has some cleanup on the naming used for the application key and private key path, the .env-example file does not match what we really use.
.env-example
This also introduces a few conventions I want to start using during the code snippet cleanup.
$argv
error_log()
stderr
echo
0
exit()
This shows how to update an existing call with an NCCO transfer, instead of using the
\Nexmo\Call\Transfer
class.This also has some cleanup on the naming used for the application key and private key path, the
.env-example
file does not match what we really use.This also introduces a few conventions I want to start using during the code snippet cleanup.
$argv
instead of relying on transient defines. Turns out it's really easy to disable inline environment variables in PHPerror_log()
whenever an error happens, to get properstderr
output. Previously it andecho
were used interchangeably.0
, so only need to explicitlyexit()
when there is an error).