dev-master
9999999-devA Linkedin wrapper, that generates a CV from users profile that can be send to consultants
The Requires
- php >=5.4.0
- ensepar/html2pdf dev-master
The Development Requires
api oauth sdk client pdf linkedin
Wallogit.com
2017 © Pedro Peláez
A Linkedin wrapper, that generates a CV from users profile that can be send to consultants
If your using composer add this to your dependencies:, (*1)
"soroush/apply-with-linkedin-php": "dev-master"
, (*2)
You would need to install the PHP OAUTH Driver
Execute this command on your machine
pecl install oauth
, (*3)
require_once 'vendor/autoload.php';
$consumerKey = '';
$consumerSecret = '';
$linkedin = new \Soroush\Linkedin\Linkedin($consumerKey, $consumerSecret);
if ($linkedin->isLoggedIn()) {
echo $linkedin->fetch()->downloadPdf();
} else {
echo $linkedin->getLoginUrl();
}
require_once 'vendor/autoload.php';
$consumerKey = '';
$consumerSecret = '';
$linkedin = new \Soroush\Linkedin\Linkedin($consumerKey, $consumerSecret);
if ($linkedin->isLoggedIn()) {
echo $linkedin->fetch()->profile()->getFirstName();
echo $linkedin->fetch()->profile()->getLastName();
} else {
echo $linkedin->getLoginUrl();
}
http://soroushatarod.github.io/apply-with-linkedin-php/, (*4)
A Linkedin wrapper, that generates a CV from users profile that can be send to consultants
api oauth sdk client pdf linkedin