Skip to content
New issue

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

Update resource owner url to version 2 #15

Merged
merged 5 commits into from Jun 21, 2018
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -1,17 +1,40 @@
language: php

sudo: false

php:
- 5.6
- 7.0
- 7.1
- hhvm

matrix:
include:
- php: 5.6
env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'
include:
- php: 5.6
- php: 7.0
- php: 7.1
- php: 7.2
- php: nightly
- php: hhvm-3.6
sudo: required
dist: trusty
group: edge
- php: hhvm-3.9
sudo: required
dist: trusty
group: edge
- php: hhvm-3.12
sudo: required
dist: trusty
group: edge
- php: hhvm-3.15
sudo: required
dist: trusty
group: edge
- php: hhvm-nightly
sudo: required
dist: trusty
group: edge
fast_finish: true
allow_failures:
- php: nightly
- php: hhvm-3.6
- php: hhvm-3.9
- php: hhvm-3.12
- php: hhvm-3.15
- php: hhvm-nightly

before_script:
- travis_retry composer self-update
@@ -23,5 +46,5 @@ script:
- ./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "$TRAVIS_PHP_VERSION" != "7.0" ]; then wget https://scrutinizer-ci.com/ocular.phar; fi
- if [ "$TRAVIS_PHP_VERSION" != "hhvm" ] && [ "$TRAVIS_PHP_VERSION" != "7.0" ]; then php ocular.phar code-coverage:upload --format=php-clover coverage.clover; fi
@@ -1,10 +1,27 @@
# Changelog
All Notable changes to `oauth2-linkedin` will be documented in this file

## 4.0.0 - 2018-06-21

### Added
- Update resource owner url to use v2 of API.

### Deprecated
- Nothing

### Fixed
- Nothing

### Removed
- Nothing

### Security
- Nothing

## 3.1.0 - 2018-05-04

### Added
- Add a summary field from LinkedIn API - thanks @krainiuk-michael
- Add a summary field from LinkedIn API - thanks @krainiuk-michael

### Deprecated
- Nothing
@@ -92,7 +92,7 @@ public function getResourceOwnerDetailsUrl(AccessToken $token)
{
$fields = implode(',', $this->fields);
return 'https://api.linkedin.com/v1/people/~:(' . $fields . ')?format=json';
return 'https://api.linkedin.com/v2/me?fields='.$fields;
}
/**
@@ -132,7 +132,7 @@ protected function checkResponse(ResponseInterface $response, $data)
*
* @param array $response
* @param AccessToken $token
* @return League\OAuth2\Client\Provider\ResourceOwnerInterface
* @return LinkedInResourceOwner
*/
protected function createResourceOwner(array $response, AccessToken $token)
{
@@ -154,7 +154,7 @@ public function getFields()
*
* @param array $fields
*
* @return League\OAuth2\Client\Provider\LinkedIn
* @return LinkedIn
*/
public function withFields(array $fields)
{
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.