BasicAuth
in package
Basic Authentication class.
Table of Contents
- $ch : resource
- cURL handle.
- $consumerKey : string
- Consumer key.
- $consumerSecret : string
- Consumer secret.
- $doQueryString : bool
- Do query string auth.
- $parameters : array<string|int, mixed>
- Request parameters.
- __construct() : mixed
- Initialize Basic Authentication class.
- getParameters() : array<string|int, mixed>
- Get parameters.
- processAuth() : mixed
- Process auth.
Properties
$ch
cURL handle.
protected
resource
$ch
$consumerKey
Consumer key.
protected
string
$consumerKey
$consumerSecret
Consumer secret.
protected
string
$consumerSecret
$doQueryString
Do query string auth.
protected
bool
$doQueryString
$parameters
Request parameters.
protected
array<string|int, mixed>
$parameters
Methods
__construct()
Initialize Basic Authentication class.
public
__construct(resource $ch, string $consumerKey, string $consumerSecret, bool $doQueryString[, array<string|int, mixed> $parameters = [] ]) : mixed
Parameters
- $ch : resource
-
cURL handle.
- $consumerKey : string
-
Consumer key.
- $consumerSecret : string
-
Consumer Secret.
- $doQueryString : bool
-
Do or not query string auth.
- $parameters : array<string|int, mixed> = []
-
Request parameters.
Return values
mixed —getParameters()
Get parameters.
public
getParameters() : array<string|int, mixed>
Return values
array<string|int, mixed> —processAuth()
Process auth.
protected
processAuth() : mixed