LinkedIn::checkResponse
Used to check whether a response LinkedIn object has the required http_code or not and returns an appropriate LinkedIn object.
Signature
private function checkResponse(mixed
$http_code_required,
array
$response )
Parameters
$http_code_required
—
mixed
The required http response from LinkedIn, passed in either as an integer,
or an array of integers representing the expected values.
$response
—
array
An array containing a LinkedIn response.
Returns
- boolean
TRUE or FALSE depending on if the passed LinkedIn response matches the expected response.