Skip to content

Commit 6331e52

Browse files
Merge pull request #51 from linkedin-developers/swathivshenoy-patch-1
Update README.md Example
2 parents fd7948d + 021328d commit 6331e52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ pip install linkedin-api-client
8080

8181
### Simple API Request Example
8282

83-
Here is an example of using the client to make a simple GET request to [fetch the current user's profile](https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin#retrieving-member-profiles). This requires a 3-legged access token with the "r_liteprofile" scope, which is included with the Sign In With LinkedIn API product.
83+
Here is an example of using the client to make a simple GET request to [fetch the current user's information](https://learn.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin-v2?context=linkedin%2Fconsumer%2Fcontext#api-request-to-retreive-member-details). This requires a 3-legged access token with the "openid" and "profile" scope, which is included with the Sign In With LinkedIn using OpenID Connect API product.
8484

8585
```python
8686
from linkedin_api.clients.restli.client import RestliClient
8787

8888
restli_client = RestliClient()
8989

9090
response = restli_client.get(
91-
resource_path="/me",
91+
resource_path="/userinfo",
9292
access_token=<THREE_LEGGED_ACCESS_TOKEN>
9393
)
9494
print(response.entity)

0 commit comments

Comments
 (0)