/** * Add scope (Required by linkedin API if email address is needed) * * {@inheritDoc} */ protected function getRequestToken($redirectUri, array $extraParameters = array()) { $extraParameters['scope'] = $this->getOption('scope'); return parent::getRequestToken($redirectUri, $extraParameters); }
/** * {@inheritDoc} */ protected function httpRequest($url, $content = null, $parameters = array(), $headers = array(), $method = null) { $headers[] = 'x-li-format: json'; return parent::httpRequest($url, $content, $parameters, $headers, $method); }