rishats/linkedin-php
Composer 安装命令:
composer require rishats/linkedin-php
包简介
PHP library for LinkedIn
README 文档
README
PHP client for LinkedIn API V2.
Requirements
- php >= 7.0
Installation
composer require rishats/linkedin-php:"dev-master"
Using LinkedIn API
To work with LinkedIn API have to init Client classes.
$client = new Client('appId', 'appSecret', 'returnUrl');
Authentication
$client = new Client('appId', 'appSecret', 'returnUrl'); if ($_GET['code']) { $client->initToken($_GET['code']); $me = new Me($client); } else { $authUrl = $client->getAuthorizationUrl([ 'scope' => [Client::PERMISSION_LITE_PROFILE] ]); header('Location: '.$authUrl); exit; }
统计信息
- 总下载量: 1.61k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-07-08