O'Reilly logo

Lift Application Development Cookbook by Gilberto T. Garcia Jr.

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Fetching a user's LinkedIn data

After learning how to sign users up to your application using their LinkedIn account, we will learn how to fetch the user's LinkedIn connection list.

Getting ready

We will modify the project we created in the previous section.

How to do it...

Carry out following steps:

  1. Modify the LinkedinDispatcher object by changing the scope parameter in the signup() method from "r_emailaddress" to "r_emailaddress,r_fullprofile,r_network".
  2. Create a case class called User as follows:
    case class User(email: String, token: String)
  3. Change the type of the session variable linkedinSession from Box[String] to Box[User].
  4. Change the linkedinSess(Full(email)) code in the callback method to linkedinSess(Full(User(email, t))).
  5. Modify the index.html ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required