Closed nirjharlo closed 7 years ago
Thank you for a detailed issue. It really helps me debugging this.
You see this issue because you do not use Composer. To solve the issue, download composer and run:
composer require php-http/curl-client guzzlehttp/psr7 php-http/message happyr/linkedin-api-client
Then you can use composer's autoload.
require_once "vendor/autoload.php";
$linkedIn=new Happyr\LinkedIn\LinkedIn('client_id', 'client_secret');
Closing due inactivity.
Hey Nyholm,
I'm also having the same problem stated as above but in my case, I can't access the user profile as it Throws error at HappyR\LinkedIn\LinkedIn->get('v1/people/~:(firstName,lastName)');
I'm using composer and your given composer.json file from the GitHub and when I hit this command "composer install" on cmd it gives an exception as
[RuntimeException] Failed to clone https://github.com/php-http/discovery.git, git was not found,
As your Exception message says:
Failed to clone https://github.com/php-http/discovery.git, git was not found,
It seams like you need to install git. Please refer to StackOverflow for issues like this. It is not an issue with this library.
Hey Nyholm,
Thank you for your quick response.I didn't know about git installation.Thanks for your quick help.
Actual Behavior
Throws error at HappyR\LinkedIn\LinkedIn->get('v1/people/~:(firstName,lastName)');
Expected Behavior
Pass the access token and fetch the data.
Steps to Reproduce
Created an autoload.php as following inside
/src
and called the files as I'm doing it from WordPress and didn't use Composer.Then called:
See live: http://teachfinder.com/log-in/ Select TEACHER and LOG IN WITH LINKEDIN
Possible Solutions
I was trying to find out
\Http\Message\MessageFactory
including this could possibly solve the problem.