PHP code example of manrich / juno

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

    

manrich / juno example snippets

 
   
 Webgopher\Juno\Core\Environment\SandboxEnvironment;
use Webgopher\Juno\Core\Http\JunoClient;

$clientId = '....';
$clientSecret = '......';
$secretToken = '......';

$environment = new SandboxEnvironment($clientId, $clientSecret, $secretToken);

$juno = new JunoClient($environment);

echo '<pre>';
var_dump($juno->execute(new \Webgopher\Juno\Api\Balance\Balance()));
 

$request = $juno->execute(new \Webgopher\Juno\Api\Balance\Balance());

$status_code = $request->status_code;
$headers = $request->headers;
$reason_phrase = $request->reason_phrase;
$result = $request->result;

$status_code