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.
Carry out following steps:
Modify the
LinkedinDispatcher
object by changing thescope
parameter in thesignup()
method from"r_emailaddress"
to"r_emailaddress,r_fullprofile,r_network"
.Create a
case
class calledUser
as follows:case class User(email: String, token: String)
Change the type of the session variable
linkedinSession
fromBox[String]
toBox[User].
Change the
linkedinSess(Full(email))
code in thecallback
method tolinkedinSess(Full(User(email, t)))
.Modify the
index.html
file by appending the following HTML code in thediv
tag with attributedata-lift
:<h4>LinkedIn Contacts</h4> <ul> <li> <span class="bold">Full Name: </span><span class...