happyr/api-php-client

Happyr 公共API客户端库。

2.1.1 2018-01-23 08:23 UTC

This package is auto-updated.

Last update: 2024-08-25 06:30:44 UTC


README

Latest Version Software License Build Status Code Coverage Quality Score Total Downloads

这个PHP库是api.happyr.com API的客户端。

安装

composer require happyr/api-php-client

配置

有几个必填的配置参数。它们是 'identifier' 和 'secret'。您可以从Happyr-API网站获取这两个参数。

用法

use Happyr\ApiClient\HappyrClient;

class MyClass
{
    public function myFunc()
    {
        $api = HappyrClient::create('myApiIdentifier', 'myApiSecret');
        $patterns = $api->profilePattern()->index('sv');
    }
}