Happyr\LinkedIn\LinkedIn::__construct PHP Method

__construct() public method

Constructor.
public __construct ( string $appId, string $appSecret, string $format = 'json', string $responseDataType = 'array' )
$appId string
$appSecret string
$format string 'json', 'xml'
$responseDataType string 'array', 'string', 'simple_xml' 'psr7', 'stream'
    public function __construct($appId, $appSecret, $format = 'json', $responseDataType = 'array')
    {
        $this->format = $format;
        $this->responseDataType = $responseDataType;
        $this->requestManager = new RequestManager();
        $this->authenticator = new Authenticator($this->requestManager, $appId, $appSecret);
    }

Usage Example

 /**
  * LinkedInLaravel constructor.
  *
  * @param string $app_id
  * @param string $app_secret
  */
 public function __construct($app_id, $app_secret)
 {
     parent::__construct($app_id, $app_secret);
 }