public function value($stat_key, $value)
    {
        if (! isset($this->config['user_key'])) {
            throw new Exception('StatHat user key not set.');
        }

        $this->post('v', ['ukey' => $this->config['user_key'], 'key' => $stat_key, 'value' => $value]);
    }
public function value($stat_key, $value)
    {
        if (! isset($this->config['user_key'])) {
            throw new Exception('StatHat user key not set.');
        }

        $this->post('v', ['ukey' => $this->config['user_key'], 'key' => $stat_key, 'value' => $value]);
    }
public function value ( $ stat_key , $ value ) { if ( ! isset ( $ this -> config [ 'user_key' ] ) ) { throw new Exception ( 'StatHat user key not set.' ) ; } $ this -> post ( 'v' , [ 'ukey' => $ this -> config [ 'user_key' ] , 'key' => $ stat_key , 'value' => $ value ] ) ; }
Send a value using the classic API.

@see https://www.stathat.com/manual/send#classic
@param string $stat_key - Private key identifying the stat
@param int $value - Value you want to track
@throws \Exception
Send a value using the classic API .