PHP code example of phootobr / apiclient

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

    

phootobr / apiclient example snippets


$apiClient = new \PhootoBR\APIClient\Client("{YOUR_CLIENT_ID}", "{YOUR_SECRET_ID}", "{SERVICE}", "{SANDBOX_MODE|true/false}");

$data = [
    "hello" => "world",
];

$response = $apiClient->post("{ENDPOINT}", $data);