Happyr\LinkedIn\LinkedInInterface::api PHP Method

api() public method

Example: $linkedIn->api('GET', '/v1/people/~:(id,firstName,lastName,headline)'); The options: - body: the body of the request - format: the format you are using to send the request - headers: array with headers to use - response_data_type: the data type to get back - query: query parameters to the request
public api ( string $method, string $resource, array $options = [] ) : mixed
$method string This is the HTTP verb
$resource string everything after the domain in the URL.
$options array See the readme for option description.
return mixed this depends on the response_data_type parameter.
    public function api($method, $resource, array $options = []);