Click here to Skip to main content
15,895,084 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have read linkedin documentation and got my detail from api but i dont know how i get user info.

C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using ASPSnippets.LinkedInAPI;

public partial class _Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        LinkedInConnect.APIKey = "apikey;;
        LinkedInConnect.APISecret = "apisecretkey;;
        LinkedInConnect.RedirectUrl = Request.Url.AbsoluteUri.Split('?')[0];
        if (LinkedInConnect.IsAuthorized)
        {
            pnlDetails.Visible = true;
            DataSet ds = LinkedInConnect.Fetch();
            //imgPicture.ImageUrl = ds.Tables["person"].Rows[0]["picture-url"].ToString();
            lblName.Text = ds.Tables["person"].Rows[0]["first-name"].ToString();
            lblName.Text += " " + ds.Tables["person"].Rows[0]["last-name"].ToString();
            lblEmailAddress.Text = ds.Tables["person"].Rows[0]["email-address"].ToString();
            lblHeadline.Text = ds.Tables["person"].Rows[0]["headline"].ToString();
            lblIndustry.Text = ds.Tables["person"].Rows[0]["industry"].ToString();
            lblLinkedInId.Text = ds.Tables["person"].Rows[0]["id"].ToString();
            //lblSpecialities.Text = ds.Tables["person"].Rows[0]["specialties"].ToString();
            lblLocation.Text = ds.Tables["location"].Rows[0]["name"].ToString();
            //imgPicture.ImageUrl = ds.Tables["person"].Rows[0]["picture-url"].ToString();
        }
    }

    protected void Authorize(object sender, EventArgs e)
    {
        LinkedInConnect.Authorize();
    }
}


by this i got my detail bt i want to get users detail by their emailid or any other info.
Posted
Comments
Member 11451780 17-Feb-15 7:08am    
please submit this solution i want another user details how to do it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900