Guest User

Untitled

a guest
Nov 15th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. axios
  2. .post("https://www.linkedin.com/oauth/v2/accessToken", {
  3. grant_type: "authorization_code",
  4. code: req.query.code,
  5. redirect_uri: keys.linkedinCallbackURL,
  6. client_id: keys.linkedinConsumerKey,
  7. client_secret: keys.linkedinConsumerSecret
  8. })
  9. .then(res2 => {
  10. console.log(res2);
  11. })
  12. .catch(error => {
  13. console.log(error);
  14. });
Add Comment
Please, Sign In to add comment