public function testProfileJson() { $client = new NextCallerPlatformClient(null, null, true); $client->getPlatformStatistics(); $this->assertTrue(true); }
<?php require __DIR__ . '/vendor/autoload.php'; use NextCaller\NextCallerPlatformClient; $user = ""; $password = ""; $sandbox = true; $client = new NextCallerPlatformClient($user, $password, $sandbox); try { $statistic = $client->getPlatformStatistics(); /* array( array( array ( 'id' => 'user1', 'first_name' => 'user1_fname', 'last_name' => 'user1_lname', 'company_name' => 'company1_name', 'email' => '*****@*****.**', 'number_of_operations' => '15', 'total_operations' => array('2014-11' => '15'), 'billed_operations' => array('2014-11' => '15'), 'resource_uri' => '/v2/platform_users/user1/', ), array( 'id' => 'user2', 'first_name' => '', 'last_name' => '', 'company_name' => '', 'email' => '',