PHP Class Larabros\Elogram\Http\Middleware\SecureRequestMiddleware

Inheritance: extends AbstractMiddleware, use trait CreateMiddlewareTrait, use trait Larabros\Elogram\Http\UrlParserTrait
Exibir arquivo Open project: larabros/elogram

Public Methods

Method Description
__invoke ( Psr\Http\Message\RequestInterface $request, array $options ) {@inheritDoc}

Protected Methods

Method Description
generateSig ( string $endpoint, array $params, string $secret ) : string Generates a sig value for a request.

Method Details

__invoke() public method

{@inheritDoc}
public __invoke ( Psr\Http\Message\RequestInterface $request, array $options )
$request Psr\Http\Message\RequestInterface
$options array

generateSig() protected method

Generates a sig value for a request.
protected generateSig ( string $endpoint, array $params, string $secret ) : string
$endpoint string
$params array
$secret string
return string