-
-
Notifications
You must be signed in to change notification settings - Fork 420
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
How to test if LinkedIn token is still valid and re-use? #519
Comments
A night's sleep and some strong coffee and I have figured that bit out 😁 For anyone searching this, change the above to:
This will give you the a reply similar to below, with your token and expiration in seconds (about 60 days):
Depending on your access level etc.. you may also at get your refresh token in this reply. Next step, let's figure out how to pass this to the .get request |
OK found out how to get this working (I think, I need to re-auth my LinkedIn app for company page scopes) To add the auth token to your requests update the following:
to:
I'm getting errors at present due to my scopes, but it's passing the access token over a treat. 😁 I shall close this for now but will leave it here and update for others to find if it helps. |
I've followed and adapted the code example for LinkedIn shown here LinkedIn Example and so far so good. I can generate an OAuth code and hand it off to make an access token, which then runs the next step:
This also runs and then 403 errors as I don't have access to the
me
api scopes but thats ok.I'm trying to find where the access token from the
fetch_token
is stored and how to test if it's still valid so I can use it on the next run.Any help on this would be great 🙂
The text was updated successfully, but these errors were encountered: