|
1 | 1 | # LinkedIn API client in PHP |
2 | 2 |
|
3 | 3 | [](https://github.com/elninotech/Linkedin-API-Client/actions) |
4 | | -[](https://codecov.io/gh/elninotech/Linkedin-API-Client) |
| 4 | +[](https://codecov.io/github/elninotech/LinkedIn-API-client) |
5 | 5 | [](https://packagist.org/packages/elninotech/linkedin-api-client) |
6 | 6 | [](https://packagist.org/packages/elninotech/linkedin-api-client/stats) |
7 | 7 |
|
@@ -37,7 +37,7 @@ find clients to use. For more information about virtual packages please refer to |
37 | 37 | [HTTPlug](http://docs.php-http.org/en/latest/httplug/users.html). Example: |
38 | 38 |
|
39 | 39 | ```bash |
40 | | -composer require php-http/guzzle6-adapter |
| 40 | +composer require php-http/guzzle7-adapter |
41 | 41 | ``` |
42 | 42 |
|
43 | 43 | You do also need to install a PSR-7 implementation and a factory to create PSR-7 messages (PSR-17 whenever that is |
@@ -78,7 +78,7 @@ an *API Key* and *Secret Key*. |
78 | 78 |
|
79 | 79 | This example below is showing how to login with LinkedIn. |
80 | 80 |
|
81 | | -```php |
| 81 | +```php |
82 | 82 | <?php |
83 | 83 |
|
84 | 84 | /** |
@@ -162,7 +162,7 @@ The data type returned from `LinkedIn::api` can be configured. You may use the t |
162 | 162 | $linkedIn=new Elnino\LinkedIn\LinkedIn('app_id', 'app_secret', 'array'); |
163 | 163 |
|
164 | 164 | // By setter |
165 | | -$linkedIn->setResponseDataType('simple_xml'); |
| 165 | +$linkedIn->setResponseDataType('string'); |
166 | 166 |
|
167 | 167 | // Set format for just one request |
168 | 168 | $linkedIn->get('/v2/me/?projection=(id,firstName,lastName)', array('response_data_type'=>'psr7')); |
@@ -204,7 +204,11 @@ $url = $linkedIn->getLoginUrl(array('scope'=>$scope)); |
204 | 204 | echo "<a href='$url'>Login with LinkedIn</a>"; |
205 | 205 | ``` |
206 | 206 |
|
| 207 | +### Special thanks |
| 208 | + |
| 209 | +This repo was originally created by [Thomas Nyholm from Happyr][forked-from]. |
207 | 210 |
|
208 | 211 | [register-app]: https://www.linkedin.com/developers/apps |
209 | 212 | [api-doc-authentication]: https://learn.microsoft.com/en-us/linkedin/shared/authentication/authentication |
210 | 213 | [api-doc-core]: https://learn.microsoft.com/en-us/linkedin/shared/api-guide/concepts |
| 214 | +[forked-from]: https://github.com/Happyr/LinkedIn-API-client |
0 commit comments