当前位置: 首页>>代码示例>>C#>>正文


C# oAuthLinkedIn.AuthorizationLinkGet方法代码示例

本文整理汇总了C#中GlobusLinkedinLib.Authentication.oAuthLinkedIn.AuthorizationLinkGet方法的典型用法代码示例。如果您正苦于以下问题:C# oAuthLinkedIn.AuthorizationLinkGet方法的具体用法?C# oAuthLinkedIn.AuthorizationLinkGet怎么用?C# oAuthLinkedIn.AuthorizationLinkGet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GlobusLinkedinLib.Authentication.oAuthLinkedIn的用法示例。


在下文中一共展示了oAuthLinkedIn.AuthorizationLinkGet方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: linkedincompanypagetest

 public void linkedincompanypagetest()
 {
     oAuthLinkedIn Linkedin_oauth = new oAuthLinkedIn();
     string authLink = Linkedin_oauth.AuthorizationLinkGet();
     Session["reuqestToken"] = Linkedin_oauth.Token;
     Session["reuqestTokenSecret"] = Linkedin_oauth.TokenSecret;
     Response.Redirect(authLink);
 }
开发者ID:utkarshx,项目名称:socioboard,代码行数:8,代码来源:Default.aspx.cs

示例2: AuthenticateLinkedin

        public void AuthenticateLinkedin(object sender, EventArgs e)
        {
            oAuthLinkedIn Linkedin_oauth = new oAuthLinkedIn();
            string authLink = Linkedin_oauth.AuthorizationLinkGet();
            Session["reuqestToken"] = Linkedin_oauth.Token;
            Session["reuqestTokenSecret"] = Linkedin_oauth.TokenSecret;

            Response.Redirect(authLink);
        }
开发者ID:utkarshx,项目名称:socioboard,代码行数:9,代码来源:Publishing.aspx.cs

示例3: GetLinkedinRedirectUrl

        public string GetLinkedinRedirectUrl(string consumerKey, string consumerSecret)
        {
            logger.Error("GetLinkedinRedirectUrl()");

            System.Net.ServicePointManager.SecurityProtocol = System.Net.SecurityProtocolType.Tls;

            string authLink = string.Empty;
            oAuthLinkedIn Linkedin_oauth = new oAuthLinkedIn();
            Linkedin_oauth.ConsumerKey = consumerKey;
            Linkedin_oauth.ConsumerSecret = consumerSecret;
            authLink = Linkedin_oauth.AuthorizationLinkGet() + "~" + Linkedin_oauth.Token + "~" + Linkedin_oauth.TokenSecret;
            //Session["reuqestToken"] = Linkedin_oauth.Token;
            //Session["reuqestTokenSecret"] = Linkedin_oauth.TokenSecret;
            return authLink;
        }
开发者ID:leaspb,项目名称:socioboard-core,代码行数:15,代码来源:Linkedin.asmx.cs

示例4: AuthenticateLinkedin

 public void AuthenticateLinkedin(object sender, EventArgs e)
 {
     try
     {
         int profilecount = (int)Session["ProfileCount"];
         int totalaccount = (int)Session["TotalAccount"];
         if (profilecount < totalaccount)
         {
             oAuthLinkedIn Linkedin_oauth = new oAuthLinkedIn();
             string authLink = Linkedin_oauth.AuthorizationLinkGet();
             Session["reuqestToken"] = Linkedin_oauth.Token;
             Session["reuqestTokenSecret"] = Linkedin_oauth.TokenSecret;
             Response.Redirect(authLink);
         }
         else
         {
             Response.Write("<script>SimpleMessageAlert('Change the Plan to Add More Accounts');</script>");
         }
     }
     catch (Exception ex)
     {
         logger.Error(ex.Message);
     }
 }
开发者ID:rathika1,项目名称:socioboard,代码行数:24,代码来源:Site.Master.cs

示例5: AuthenticateLinkedin

        public void AuthenticateLinkedin(object sender, EventArgs e)
        {
            try
            {
                GroupRepository objGroupRepository = new GroupRepository();
                SocioBoard.Domain.Team team = (SocioBoard.Domain.Team)Session["GroupName"];
                Groups lstDetails = objGroupRepository.getGroupName(team.GroupId);

                try
                {
                    int profilecount = (int)Session["ProfileCount"];
                    int totalaccount = (int)Session["TotalAccount"];
                    if (lstDetails.GroupName == "Socioboard")
                    {
                        if (profilecount < totalaccount)
                        {
                            oAuthLinkedIn Linkedin_oauth = new oAuthLinkedIn();
                            string authLink = Linkedin_oauth.AuthorizationLinkGet();
                            Session["reuqestToken"] = Linkedin_oauth.Token;
                            Session["reuqestTokenSecret"] = Linkedin_oauth.TokenSecret;

                            this.LinkedInLink.HRef = "";
                            this.LinkedInLink.HRef = authLink;
                            Response.Redirect(authLink);
                        }
                        else
                        {
                            //Response.Write("<script>SimpleMessageAlert('Change the Plan to Add More Accounts');</script>");
                            ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Change the Plan to Add More Accounts');", true);
                        }
                    }
                }
                catch (Exception ex)
                {
                    logger.Error(ex.Message);
                }
            }
            catch (Exception ex)
            {
                logger.Error(ex.Message);
            }
        }
开发者ID:utkarshx,项目名称:socioboard,代码行数:42,代码来源:Home.aspx.cs

示例6: LinkedInRedirect

        public void LinkedInRedirect(object sender, EventArgs e)
        {
            if (ddlGroup.SelectedItem.Text != "Select")
            {

                oAuthLinkedIn Linkedin_oauth = new oAuthLinkedIn();
                string authLink = Linkedin_oauth.AuthorizationLinkGet();
                Session["reuqestToken"] = Linkedin_oauth.Token;
                Session["reuqestTokenSecret"] = Linkedin_oauth.TokenSecret;

                Session["UserAndGroupsForFacebook"] = "linkedin";
                Response.Redirect(authLink);
            }
            else
            {
                Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "test", "<script type=\"text/javascript\">alert(\"Select the group to add profiles\")</script>", false);

            }
        }
开发者ID:NALSS,项目名称:socioboard,代码行数:19,代码来源:UsersAndGroups.aspx.cs

示例7: AuthenticateLinkedin

        public void AuthenticateLinkedin(object sender, EventArgs e)
        {
            try
            {
                int profilecount = (int)Session["ProfileCount"];
                int totalaccount = (int)Session["TotalAccount"];
                if (profilecount < totalaccount)
                {
                    oAuthLinkedIn Linkedin_oauth = new oAuthLinkedIn();
                    string authLink = Linkedin_oauth.AuthorizationLinkGet();
                    Session["reuqestToken"] = Linkedin_oauth.Token;
                    Session["reuqestTokenSecret"] = Linkedin_oauth.TokenSecret;

                    this.LinkedInLink.HRef = "";
                    this.LinkedInLink.HRef = authLink;
                    Response.Redirect(authLink);
                }
                else
                {
                    //Response.Write("<script>SimpleMessageAlert('Change the Plan to Add More Accounts');</script>");
                    ScriptManager.RegisterStartupScript(this, GetType(), "showalert", "alert('Change the Plan to Add More Accounts');", true);
                }
            }
            catch (Exception ex)
            {
                logger.Error(ex.Message);
            }
        }
开发者ID:NALSS,项目名称:socioboard,代码行数:28,代码来源:Home.aspx.cs


注:本文中的GlobusLinkedinLib.Authentication.oAuthLinkedIn.AuthorizationLinkGet方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。