PHP code example of depositphotos / api-sdk-php
1. Go to this page and download the library: Download depositphotos/api-sdk-php 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/ */
depositphotos / api-sdk-php example snippets
use Depositphotos\SDK\Client;
use Depositphotos\SDK\Resource\Regular\User\Request\LoginRequest;
$client = Client::createRegularClient('apiKey');
$request = new LoginRequest('username', 'password');
$response = $client->user()->login($request);
echo $response->getSessionId();
bash
composer