public string getInstagramData(string UserId, string InstagramId) { Guid userId = Guid.Parse(UserId); InstagramAccountRepository objInstagramAccountRepository = new InstagramAccountRepository(); //LinkedInAccountRepository objLinkedInAccountRepository = new LinkedInAccountRepository(); Domain.Myfashion.Domain.InstagramAccount objInstagramAccount = objInstagramAccountRepository.getInstagramAccountDetailsById(InstagramId, userId); GlobusInstagramLib.Authentication.ConfigurationIns configi = new GlobusInstagramLib.Authentication.ConfigurationIns("https://api.instagram.com/oauth/authorize/", ConfigurationManager.AppSettings["InstagramClientKey"], ConfigurationManager.AppSettings["InstagramClientSec"], ConfigurationManager.AppSettings["RedirectUrl"], "http://api.instagram.com/oauth/access_token", "https://api.instagram.com/v1/", ""); oAuthInstagram _api = new oAuthInstagram(); _api = oAuthInstagram.GetInstance(configi); //GetIntagramImages(objInstagramAccount); GetInstagramFeeds(objInstagramAccount); #region UpdateTeammemberprofile Domain.Myfashion.Domain.TeamMemberProfile objTeamMemberProfile = new Domain.Myfashion.Domain.TeamMemberProfile(); objTeamMemberProfile.ProfileName = objInstagramAccount.InsUserName; objTeamMemberProfile.ProfilePicUrl = objInstagramAccount.ProfileUrl; objTeamMemberProfile.ProfileId = objInstagramAccount.InstagramId; objTeamMemberProfileRepository.updateTeamMemberbyprofileid(objTeamMemberProfile); #endregion return "Instagram Info is Updated successfully"; }
public string getInstagramData(string UserId, string InstagramId) { Guid userId = Guid.Parse(UserId); InstagramAccountRepository objInstagramAccountRepository = new InstagramAccountRepository(); //LinkedInAccountRepository objLinkedInAccountRepository = new LinkedInAccountRepository(); Domain.Myfashion.Domain.InstagramAccount objInstagramAccount = objInstagramAccountRepository.getInstagramAccountDetailsById(InstagramId, userId); GlobusInstagramLib.Authentication.ConfigurationIns configi = new GlobusInstagramLib.Authentication.ConfigurationIns("https://api.instagram.com/oauth/authorize/", ConfigurationManager.AppSettings["InstagramClientKey"], ConfigurationManager.AppSettings["InstagramClientSec"], ConfigurationManager.AppSettings["RedirectUrl"], "http://api.instagram.com/oauth/access_token", "https://api.instagram.com/v1/", ""); oAuthInstagram _api = new oAuthInstagram(); _api = oAuthInstagram.GetInstance(configi); //GetIntagramImages(objInstagramAccount); GetInstagramFeeds(objInstagramAccount); #region UpdateTeammemberprofile Domain.Myfashion.Domain.TeamMemberProfile objTeamMemberProfile = new Domain.Myfashion.Domain.TeamMemberProfile(); objTeamMemberProfile.ProfileName = objInstagramAccount.InsUserName; objTeamMemberProfile.ProfilePicUrl = objInstagramAccount.ProfileUrl; objTeamMemberProfile.ProfileId = objInstagramAccount.InstagramId; objTeamMemberProfileRepository.updateTeamMemberbyprofileid(objTeamMemberProfile); #endregion return("Instagram Info is Updated successfully"); }