depositphotos/api-sdk-php

PHP SDK for Depositphotos API

v1.0.0 2022-07-22 08:54 UTC

This package is not auto-updated.

Last update: 2024-11-27 00:36:01 UTC


README

Requirements

  • PHP 7.1 or greater
  • ext-curl
  • ext-json

Installation

The Depositphotos PHP SDK can be installed through Composer.

composer require depositphotos/api-sdk-php

Usage

require 'vendor/autoload.php';
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();

Documentation

PHP SDK Docs

Regular API Docs

Enterprise API Docs