public function generateForKey($key, $time)
    {
        if ($secret = $this->client->getAppSecretForKey($key)) {
            return $this->generate($key, $secret, $time);
        }
    }
public function generateForKey($key, $time)
    {
        if ($secret = $this->client->getAppSecretForKey($key)) {
            return $this->generate($key, $secret, $time);
        }
    }
public function generateForKey ( $ key , $ time ) { if ( $ secret = $ this -> client -> getAppSecretForKey ( $ key ) ) { return $ this -> generate ( $ key , $ secret , $ time ) ; } }
Generate an api token for the given app key.

@param  string  $key
@param  string|int  $time
@return string|null
Generate an api token for the given app key .