We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
At https://github.com/ashwinks/PHP-LinkedIn-SDK/blob/master/LinkedIn/LinkedIn.php#L241 the method call has no param and so at https://github.com/ashwinks/PHP-LinkedIn-SDK/blob/master/LinkedIn/LinkedIn.php#L95 the $authorization_code never gets a value and so it can't function.
The text was updated successfully, but these errors were encountered:
Yes, you are right I have no idea how this code could work at any point. so remove https://github.com/ashwinks/PHP-LinkedIn-SDK/blob/master/LinkedIn/LinkedIn.php#L240 as its not needed. Remove everything after trim($endpoint, '/\\') at https://github.com/ashwinks/PHP-LinkedIn-SDK/blob/master/LinkedIn/LinkedIn.php#L241 Finally on https://github.com/ashwinks/PHP-LinkedIn-SDK/blob/master/LinkedIn/LinkedIn.php#L243 replace $this->getAccessToken() with $this->_access_token.
trim($endpoint, '/\\')
$this->getAccessToken()
$this->_access_token
For me fetch function looks like this and works:
public function fetch($endpoint, array $payload = array(), $method = 'GET', array $headers = array(), array $curl_options = array()) { $endpoint = self::API_BASE . '/' . trim($endpoint, '/\\'); $headers[] = 'x-li-format: json'; $headers[] = 'Authorization: Bearer ' . $this->_access_token; return $this->_makeRequest($endpoint, $payload, $method, $headers, $curl_options); }
Sorry, something went wrong.
No branches or pull requests
At https://github.com/ashwinks/PHP-LinkedIn-SDK/blob/master/LinkedIn/LinkedIn.php#L241 the method call has no param and so at https://github.com/ashwinks/PHP-LinkedIn-SDK/blob/master/LinkedIn/LinkedIn.php#L95 the $authorization_code never gets a value and so it can't function.
The text was updated successfully, but these errors were encountered: