PHP code example of ledevoir / pianoid-api-php-sdk
1. Go to this page and download the library: Download ledevoir/pianoid-api-php-sdk 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/ */
ledevoir / pianoid-api-php-sdk example snippets
use \LeDevoir\PianoIdApiSDK\Client\GuzzleClient;
use \LeDevoir\PianoIdApiSDK\Request\Login\LoginRequest;
$client = new GuzzleClient();
$request = new LoginRequest('[email protected]', 'password');
$httpResponse = $client->send($request);
$pianoResponse = $request->toPianoIdResponse($httpResponse);
$failed = $pianoResponse->isFailure();