Skip to main content

Client


Client

  • Full name: \Onslip360\Hawk\Client

Methods

Generate an Authorization header for a given request

public static header(string $uri, string $method, \Onslip360\Hawk\HeaderOptions $options): \Onslip360\Hawk\HeaderResult
  • This method is static.

Parameters:

ParameterTypeDescription
$uristring
$methodstring
$options\Onslip360\Hawk\HeaderOptions

authenticate

Validate Server Response

public static authenticate(array $headers, \Onslip360\Hawk\Credentials $credentials, \Onslip360\Hawk\HeaderArtifacts $artifacts, \Onslip360\Hawk\AuthenticateOptions $options): mixed
  • This method is static.

Parameters:

ParameterTypeDescription
$headersarray
$credentials\Onslip360\Hawk\Credentials
$artifacts\Onslip360\Hawk\HeaderArtifacts
$options\Onslip360\Hawk\AuthenticateOptions


Automatically generated on 2024-11-05