PHP code example of masiuchi / mt-data-api-client-php

1. Go to this page and download the library: Download masiuchi/mt-data-api-client-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/ */

    

masiuchi / mt-data-api-client-php example snippets


use \MT\DataAPI\Client;

$opts = array(
  "base_url" => "http://localhost/mt/mt-data-api.cgi",
  "client_id" => "test"
);
$client = new Client($opts);

$res = $client->call('list_sites');