Class to represent an OAuth datastore

author Stephen P Vickers
version 2.5.00
license GNU Lesser General Public License, version 3
package LTI

 Methods

Class constructor.

__construct(string $url, string $method = 'GET', mixed $params = NULL, string $header = NULL

Parameters

$url

string

URL to send request to

$method

string

Request method to use (optional, default is GET)

$params

mixed

Associative array of parameter values to be passed or message body (optional, default is none)

$header

string

Values to include in the request header (optional, default is none)

Send the request to the target URL.

send() : boolean

Returns

booleanTRUE if the request was successful

 Properties

 

Error message

$error : \error

Default

''
 

Request body.

$request : \request

Default

NULL
 

Request headers.

$request_headers : \request_headers

Default

''
 

Response body.

$response : \response

Default

NULL
 

Response headers.

$response_headers : \response_headers

Default

''
 

Status of response (0 if undetermined).

$status : \status

Default

0
 

Request method.

$method : \method

Default

NULL
 

Request URL.

$url : \url

Default

NULL