thephpleague / oauth2-linkedin

LinkedIn Provider for the OAuth 2.0 Client
MIT License
83 stars 37 forks source link

This resource is no longer available under v1 APIs #14

Closed damianociarla closed 6 years ago

damianociarla commented 6 years ago

When I invoke the "getResourceOwner" function I get this message: This resource is no longer available under v1 APIs

Is it possible to update the call using the v2 apis? I found this: https://developer.linkedin.com/docs/guide/v2/people/profile

Thanks :-)

stevenmaguire commented 6 years ago

@damianociarla thanks for bringing this up! It appears to be a legit issue. I will look into updating the API version ASAP.

stevenmaguire commented 6 years ago

@damianociarla take a look at version 4.0.0 of this package. Let me know if it does not work for you.

stevenmaguire commented 6 years ago

For @damianociarla and anyone else who finds this issue, I have been doing some testing with the new API and it appears as if Linkedin has begun enforcing tighter access controls.

https://github.com/thephpleague/oauth2-linkedin#before-you-begin

If you have a different experience or feel that some alternate configuration of this package may enable obtaining resource owner information, please bring it up here.

stevenmaguire commented 6 years ago

I was able to access the v1 endpoint with an access token configured with the appropriate scopes and it did return results, although the results were limited when considering the explicit fields I requested. So, perhaps mileage may vary? I will update the package to allow for configuration of which endpoint you'd like to use so you at least have the flexibility to test things out for yourself.

damianociarla commented 6 years ago

Great! it works perfectly! I really like how you structured the code!

Thanks a lot for the timely update :-)

Yamakasi commented 5 years ago

I'm also/still running into this, even with a new created V2 App.

Any idea ?

rishiraj824 commented 5 years ago

The documentation now recommends calling /v2/me for getting the details.

Daniyaldehleh commented 4 years ago

Hi all! Does anyone know whether LinkedIn still allows POST message and connection request API calls? even though the documentation for it still exist @stevenmaguire