コード例 #1
0
 public function testResponse()
 {
     $username = API_ENVS::get()["user1"]["login"];
     $user = Vzaar::getUserDetails($username);
     $this->assertEquals($username, $user->authorName);
 }
コード例 #2
0
<?php

/* 
 * @author Skitsanos
 */
require_once '../src/Vzaar.php';
/**
 * This API call returns the user's public details along with it's relevant metadata
 */
var_dump(Vzaar::getUserDetails('user'));