public string GetLinkedGroupsDataDetail(string userid, string groupid, string linkedinId) { LinkedInAccount linkacc; string authLink = string.Empty; LinkedInAccountRepository linkedinAccRepo = new LinkedInAccountRepository(); if (linkedinAccRepo.checkLinkedinUserExists(linkedinId, Guid.Parse(userid))) { linkacc = linkedinAccRepo.getUserInformation(Guid.Parse(userid), linkedinId); } else { linkacc = linkedinAccRepo.getUserInformation(linkedinId); } // LinkedInAccount linkacc = linkedinAccRepo.getUserInformation(Guid.Parse(userid), linkedinId); oAuthLinkedIn oauthlin = new oAuthLinkedIn(); oauthlin.ConsumerKey = ConfigurationManager.AppSettings["LiApiKey"]; oauthlin.ConsumerSecret = ConfigurationManager.AppSettings["LiSecretKey"]; oauthlin.FirstName = linkacc.LinkedinUserName; oauthlin.Id = linkacc.LinkedinUserId; oauthlin.Token = linkacc.OAuthToken; oauthlin.TokenSecret = linkacc.OAuthSecret; oauthlin.Verifier = linkacc.OAuthVerifier; GlobusLinkedinLib.App.Core.LinkedInGroup l = new GlobusLinkedinLib.App.Core.LinkedInGroup(); List <Domain.Myfashion.Domain.LinkedInGroup.Group_Updates> lst = l.GetGroupPostData(oauthlin, 20, groupid, linkedinId); return(new JavaScriptSerializer().Serialize(lst)); }
public string GetLinkedGroupsDetail(string profileid, string userid) { string authLink = string.Empty; LinkedInAccountRepository linkedinAccRepo = new LinkedInAccountRepository(); LinkedInAccount linkacc = linkedinAccRepo.getUserInformation(Guid.Parse(userid), profileid); oAuthLinkedIn oauthlin = new oAuthLinkedIn(); oauthlin.ConsumerKey = ConfigurationManager.AppSettings["LiApiKey"]; oauthlin.ConsumerSecret = ConfigurationManager.AppSettings["LiSecretKey"]; oauthlin.FirstName = linkacc.LinkedinUserName; oauthlin.Id = linkacc.LinkedinUserId; oauthlin.Token = linkacc.OAuthToken; oauthlin.TokenSecret = linkacc.OAuthSecret; oauthlin.Verifier = linkacc.OAuthVerifier; GlobusLinkedinLib.App.Core.LinkedInGroup l = new GlobusLinkedinLib.App.Core.LinkedInGroup(); List <Domain.Socioboard.Domain.LinkedInGroup.Group_Updates> lst = l.GetGroupUpdates(oauthlin, 20); return(new JavaScriptSerializer().Serialize(lst)); }
public string GetLinkedGroupsDataDetail(string userid,string groupid, string linkedinId) { LinkedInAccount linkacc; string authLink = string.Empty; LinkedInAccountRepository linkedinAccRepo = new LinkedInAccountRepository(); if (linkedinAccRepo.checkLinkedinUserExists(linkedinId, Guid.Parse(userid))) { linkacc = linkedinAccRepo.getUserInformation(Guid.Parse(userid), linkedinId); } else { linkacc = linkedinAccRepo.getUserInformation(linkedinId); } // LinkedInAccount linkacc = linkedinAccRepo.getUserInformation(Guid.Parse(userid), linkedinId); oAuthLinkedIn oauthlin = new oAuthLinkedIn(); oauthlin.ConsumerKey = ConfigurationManager.AppSettings["LiApiKey"]; oauthlin.ConsumerSecret = ConfigurationManager.AppSettings["LiSecretKey"]; oauthlin.FirstName = linkacc.LinkedinUserName; oauthlin.Id = linkacc.LinkedinUserId; oauthlin.Token = linkacc.OAuthToken; oauthlin.TokenSecret = linkacc.OAuthSecret; oauthlin.Verifier = linkacc.OAuthVerifier; GlobusLinkedinLib.App.Core.LinkedInGroup l = new GlobusLinkedinLib.App.Core.LinkedInGroup(); List<Domain.Socioboard.Domain.LinkedInGroup.Group_Updates> lst = l.GetGroupPostData(oauthlin, 20, groupid, linkedinId); return new JavaScriptSerializer().Serialize(lst); }
public List<GlobusLinkedinLib.App.Core.LinkedInGroup.Group_Updates> GetGroupsName(oAuthLinkedIn objoAuthLinkedIn) { List<GlobusLinkedinLib.App.Core.LinkedInGroup.Group_Updates> objGroup = new List<GlobusLinkedinLib.App.Core.LinkedInGroup.Group_Updates>(); LinkedInGroup objLinkedInGroup = new LinkedInGroup(); objGroup = objLinkedInGroup.GetGroupUpdates(objoAuthLinkedIn, 20); return objGroup; }