Skip to content

Commit

Permalink
Readme file updated
Browse files Browse the repository at this point in the history
  • Loading branch information
shahariaazam committed Aug 8, 2015
1 parent 8bada86 commit ffdc46a
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ Copy/paste _config.sample_ & rename it to config.php with your Vonage Username &
require "vendor/autoload.php";
require "config.php";

$vonage = new \Vonage\Vonage(VONAGE_USERNAME, VONAGE_PASSWORD);
var_dump($vonage->makeCall('NumberToCall')); die();
$vonage = new \Vonage\Vonage('vonageUsername', 'VonagePassword');
$params = array(
'start' => date('Y-m-d\TH:i:sP')
);
var_dump($vonage->request('callhistory/{VonageExtensionNumber}', $params)); die();
```
The above call will return "OK" if call happen. Now pickup the phone and start talking.

See the result as PHP debug format.

0 comments on commit ffdc46a

Please sign in to comment.