public function generate($key, $secret, $time)
    {
        if ($key && $secret && $time) {
            return substr(md5($key.$secret.$time), 10, 20);
        }
    }
public function generate($key, $secret, $time)
    {
        if ($key && $secret && $time) {
            return substr(md5($key.$secret.$time), 10, 20);
        }
    }
public function generate ( $ key , $ secret , $ time ) { if ( $ key && $ secret && $ time ) { return substr ( md5 ( $ key . $ secret . $ time ) , 10 , 20 ) ; } }
Generate an api token.

@param  string  $key
@param  string  $secret
@param  string|int  $time
@return string|null
Generate an api token .