Use Php Client API

The generated php api dir structure is

   UserRESTClient.php
   request\UserGetRequest.php
   request\UserUpdateRequest.php
   request\UserCreateRequest.php
   request\UserDeleteRequest.php

How to use it:

  1. Create RESTClient instance
  2. Create named request instance
  3. Set request param values
  4. Use RestClient call request
  5. Use the return values

Here is a code snippet:

<?php
  $client = new UserRESTClient();
  $req    = new UserGetRequest();
  $req->setUserName("test");
  $res = $client->execute($req);
  
  if ($res->code) {
    echo $res->message;
  } else {
    //echo $res->data->username;
    var_dump($res->data);
  }