PHP Class App\Http\Controllers\LinkedInController

Inheritance: extends Controller
Exibir arquivo Open project: unicodeveloper/laravel-hackathon-starter

Protected Properties

Property Type Description
$baseUrl string LinkedIn API base Url
$client object Instance of Client
$response mixed Response from requests made to LinkedIn

Public Methods

Method Description
__construct ( ) Initialize the Controller with necessary arguments
getPage ( ) : mixed Return all data to the LinkedIn API dashboard

Private Methods

Method Description
getData ( ) : array Get the data response from a get operation
getResponse ( ) : array Get the whole response from a get operation
setGetResponse ( string $relativeUrl ) Get the response from New York times API
setRequestOptions ( ) : void Set options for making the Client request

Method Details

__construct() public method

Initialize the Controller with necessary arguments
public __construct ( )

getPage() public method

Return all data to the LinkedIn API dashboard
public getPage ( ) : mixed
return mixed

Property Details

$baseUrl protected_oe property

LinkedIn API base Url
protected string $baseUrl
return string

$client protected_oe property

Instance of Client
protected object $client
return object

$response protected_oe property

Response from requests made to LinkedIn
protected mixed $response
return mixed