elic-dev/staades-sdk-php

一个用于向staades.net发送指标的PHP库

1.0.2 2018-03-27 09:31 UTC

This package is not auto-updated.

Last update: 2024-09-14 18:52:53 UTC


README

使用Composer安装

$ php composer.phar require elic-dev/staades-php-sdk

有关Composer文档,请参阅 getcomposer.org

用法

使用您的访问密钥初始化一个新的StaadesClient。

$config = array(
    'app_key' => 'testapp',
    'api_key' => 'testkey',
);

$client = \Staades\StaadesClient::factory($config);

开始向Staades发送命令。

向您的标识符添加内容

$client->addValue('My.test.ident', 1);

设置您的标识符的值

$client->setValue('My.test.ident', 1);