PHP code example of uniondrug / service-client
1. Go to this page and download the library: Download uniondrug/service-client library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
uniondrug / service-client example snippets
public function postAction(){
$name = 'serviceName';
$route = 'route/action';
$query = ["page" => 1];
$body = ["userId" => 1, "options" => ["key" => "value"]];
$this->serviceClient->post($name, $route, $query, $body);
}