tmhOAuth::request
Make an HTTP request using this library. This method doesn't return anything.
Instead the response should be inspected directly.
Signature
public function request(string
$method,
string
$url,
[array
$params = ,
[boolean
$useauth = true,
[boolean
$multipart = false,
[array
$headers = ]]]] )
Parameters
$method
— string- the HTTP method being used. e.g. POST, GET, HEAD etc
$url
— string- the request URL without query string parameters
$params
— array- the request parameters as an array of key=value pairs. Default empty array
$useauth
— boolean- whether to use authentication when making the request. Default true
$multipart
— boolean- whether this request contains multipart data. Default false
$headers
— array- any custom headers to send with the request. Default empty array
Returns
- int
- the http response code for the request. 0 is returned if a connection could not be made