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

        try
        {
            Person currentUser = service.GetCurrentUser(ProfileType.Standard);

            string body = string.Format("{0} {1}", currentUser.Name, bodyTextBox.Text);

            console.Text += service.PostNetworkUpdate("nl-nl", body);
        }
        catch (LinkedInException lie)
        {
            console.Text += lie.Message;
        }
    }