public string GetTinyUrlForPage(string ConfluenceXMLRPCUrl, string confluenceUserName, string confluenceUserPassword, string pageId) { CFRpcClient client = new CFRpcClient(ConfluenceXMLRPCUrl, confluenceUserName, confluenceUserPassword); CFRpcExtensions rpcExt = new CFRpcExtensions(client); //List<CFTeamLabels> teamLabels = rpcExt.GetSpaceTeamLables("ds"); //string spaceTeamLabel = teamLabels[0].Label; return(rpcExt.GetTinyUrlForPageId(pageId)); }
public bool ConnectToConfluenceRPC(string confluenceXMLRPCUrl, string confluenceUserName, string confluenceUserPassword) { if (string.IsNullOrEmpty(confluenceXMLRPCUrl)) { return(false); } try { _rpcclient = new CFRpcClient(confluenceXMLRPCUrl, confluenceUserName, confluenceUserPassword); return(true); } catch (Exception ex) { return(false); } }
public CFRpcExtensions(CFRpcClient rpcClient) { this.rpcClient = rpcClient; }
public bool ConnectToConfluenceRPC(string confluenceXMLRPCUrl, string confluenceUserName, string confluenceUserPassword) { if(string.IsNullOrEmpty(confluenceXMLRPCUrl)) { return false; } try { _rpcclient = new CFRpcClient(confluenceXMLRPCUrl, confluenceUserName, confluenceUserPassword); return true; } catch (Exception ex) { return false; } }
public string GetTinyUrlForPage(string ConfluenceXMLRPCUrl,string confluenceUserName, string confluenceUserPassword, string pageId) { CFRpcClient client = new CFRpcClient(ConfluenceXMLRPCUrl, confluenceUserName, confluenceUserPassword); CFRpcExtensions rpcExt = new CFRpcExtensions(client); //List<CFTeamLabels> teamLabels = rpcExt.GetSpaceTeamLables("ds"); //string spaceTeamLabel = teamLabels[0].Label; return rpcExt.GetTinyUrlForPageId(pageId); }