yicr/php-json-api-client

1.0.0 2016-06-17 09:21 UTC

This package is not auto-updated.

Last update: 2024-09-22 09:43:58 UTC


README

描述

描述.

需求

  • PHP 5.3.3或更高版本

安装

在您的composer.json文件中包含yicr/php-json-api-client。例如

$ composer.phar require yicr/php-json-api-client
{
    "require": {
        "yicr/php-json-api-client": "*"
    }
}

示例

示例

require __DIR__ . '/vendor/autoload.php';


use Yicr\SimpleJsonApiClient\Client;

try {
    $client = new Client('api.example.jp');
    $response = $client->call('/path/to/endpoint/');
} catch (Exception $ex) {
    //var_dump($ex);
}


谢谢。