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:
- Create RESTClient instance
- Create named request instance
- Set request param values
- Use RestClient call request
- 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); }