本文整理汇总了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);
}
示例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);
}
示例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;
}
示例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);
}
}
示例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);
}
}
示例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);
}
}
示例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);
}
}