Closed mkismy closed 6 years ago
I contacted support and they told me they had made many changes to the SDK, but sample codes in GitHub and docs are not in maintenance. They shall be updating it soon.
They didn't affirm but it seems like the test codes are kind of up-to-date.
In the case above, the minimum code would be this:
$tropo = new Tropo();
$tropo->call("xxxxxxxxx", [ 'name' => 'foo' ]);
$tropo->say("Test can succeed!", [ 'name' => 'foo' ]);
$tropo->RenderJson();
The sample shown in the document nor this sample file succeeds creating a outbound call json. Bellow are some samples I tried with the codes in this commit: 63d3725d41cc77af8c9c91c01a343e1819f89b23
Code1
Result1
OK. Lets make it an array.
Code2
Result2
I give up 😕
Are these error caused due to api changes or is the document just incomplete?