PHP code example of dondominio / api-sdk-php

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

    

dondominio / api-sdk-php example snippets




// Load the DonDominio SDK autoloader
 Client
$dondominio = new \Dondominio\API\API([
    'apiuser' => "YOUR_API_USER",
    'apipasswd' => "YOUR_API_PASSWORD"
]);

// Request the account information to the API
$response = $dondominio->account_info();

// Get the API Response in Array and print it
print_r($response->getResponseData());




// Carga el autoloader del SDK de DonDominio
Dominio
$dondominio = new \Dondominio\API\API([
    'apiuser' => "YOUR_API_USER",
    'apipasswd' => "YOUR_API_PASSWORD"
]);

// Consulta a la API la información de la cuenta
$response = $dondominio->account_info();

// Obtiene la respuesta de la API en formato Array y lo imprime
print_r($response->getResponseData());