PHP code example of timopaul / dreamrobot
1. Go to this page and download the library: Download timopaul/dreamrobot 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/ */
timopaul / dreamrobot example snippets
use TimoPaul\DreamRobot\Client\Curl as CurlClient;
use TimoPaul\DreamRobot\Request\ReadPortalAccountsRequest;
// initialize HTTP client
$client = CurlClient::getInstance($user, $pass);
// create request object
$request = $client->createRequest(ReadPortalAccountsRequest::class);
// send HTTP request and get response object
$response = $client->send($request);