public void GetUsersofblog(string UserId, string SiteId) { Domain.Socioboard.Domain.WordpressAccount objWordpressAccount = new Domain.Socioboard.Domain.WordpressAccount(); objWordpressAccount = objWPAccountRepo.GetWordpressAccountById(Guid.Parse(UserId), SiteId); oAuthWordpress _oAuth = new oAuthWordpress(); _oAuth.access_token = objWordpressAccount.AccessToken; string userinfo = _oAuth.APIWebRequestToGetUserInfo(Globals._Usersofblog + objWordpressAccount.PrimaryBlogId + "/users"); }
public string GetWordpressAccountById(string userid, string wpid) { Domain.Socioboard.Domain.WordpressAccount wpacc = WpAccountRepo.GetWordpressAccountById(Guid.Parse(userid), wpid); return(new JavaScriptSerializer().Serialize(wpacc)); }