Exemple #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ILinkedInService service = _linkedInService;

        connectionsDataList.DataSource = service.GetConnectionsForCurrentUser().Items;
        connectionsDataList.DataBind();
    }
Exemple #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ILinkedInService service = _linkedInService;

        try
        {
            List <ProfileField> fields = new List <ProfileField>
            {
                ProfileField.CurrentShare,
                ProfileField.DateOfBirth,
                ProfileField.FirstName,
                ProfileField.Headline,
                ProfileField.Industry,
                ProfileField.LastName,
                ProfileField.LocationCountryCode,
                ProfileField.LocationName,
                ProfileField.NumberOfConnections,
                ProfileField.NumberOfConnectionsCapped,
                ProfileField.PersonId,
                ProfileField.PictureUrl,
                ProfileField.PublicProfileUrl
            };

            Connections connections = service.GetConnectionsForCurrentUser(fields, Modified.Updated, 1);

            console.Text += Utilities.SerializeToXml <Connections>(connections);
        }
        catch (LinkedInException lie)
        {
            console.Text += lie.Message;
        }
    }
Exemple #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ILinkedInService service = _linkedInService;

        try
        {
            Connections connections = service.GetConnectionsForCurrentUser();

            console.Text += Utilities.SerializeToXml <Connections>(connections);
        }
        catch (LinkedInException lie)
        {
            console.Text += lie.Message;
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        ILinkedInService service = _linkedInService;

        try
        {
            List <ProfileField> fields = new List <ProfileField>
            {
                ProfileField.ApiStandardProfileRequestHeaders,
                ProfileField.ApiStandardProfileRequestUrl,
                ProfileField.CurrentStatus,
                ProfileField.CurrentStatusTimestamp,
                ProfileField.DateOfBirth,
                ProfileField.Distance,
                ProfileField.EducationActivities,
                ProfileField.EducationDegree,
                ProfileField.EducationEndDate,
                ProfileField.EducationFieldOfStudy,
                ProfileField.EducationId,
                ProfileField.EducationSchoolName,
                ProfileField.EducationStartDate,
                ProfileField.FirstName,
                ProfileField.Headline,
                ProfileField.IMAccounts,
                ProfileField.Industry,
                ProfileField.LastName,
                ProfileField.LocationCountryCode,
                ProfileField.LocationName,
                ProfileField.MainAddress,
                ProfileField.MemberUrlName,
                ProfileField.MemberUrlUrl,
                ProfileField.NumberOfConnections,
                ProfileField.NumberOfConnectionsCapped,
                ProfileField.PersonId,
                ProfileField.PhoneNumbers,
                ProfileField.PictureUrl,
                ProfileField.PositionCompanyName,
                ProfileField.PositionEndDate,
                ProfileField.PositionId,
                ProfileField.PositionIsCurrent,
                ProfileField.PositionStartDate,
                ProfileField.PositionSummary,
                ProfileField.PositionTitle,
                ProfileField.PublicProfileUrl,
                ProfileField.RecommendationId,
                ProfileField.RecommendationRecommendationType,
                ProfileField.RecommendationRecommender,
                ProfileField.SiteStandardProfileRequestUrl,
                ProfileField.ThreeCurrentPositions,
                ProfileField.ThreePastPositions,
                ProfileField.TwitterAccounts
            };

            Connections connections = service.GetConnectionsForCurrentUser(fields, 1, 2, Modified.New, 12);

            console.Text += Utilities.SerializeToXml <Connections>(connections);
        }
        catch (LinkedInException lie)
        {
            console.Text += lie.Message;
        }
    }