PHP code example of ekvio-dev / giftery

1. Go to this page and download the library: Download ekvio-dev/giftery 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/ */

    

ekvio-dev / giftery example snippets


   $apiClient = new \Giftery\GifteryApi(new CurlClient(), 12345, 'secret');
   $response = $apiClient->getBalance();
   

    $httpFactory = new \GuzzleHttp\Psr7\HttpFactory();
    $httpClient = new \GuzzleHttp\Client();

    $psrClient = new \Giftery\PsrHttpClient($httpFactory, $httpClient);
    $apiClient - new \Giftery\GifteryApi($psrClient, 12345, 'secret');
    $response = $apiClient->getBalance();