예제 #1
0
        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));
        }
예제 #2
0
        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);
            }
        }
예제 #3
0
  public CFRpcExtensions(CFRpcClient rpcClient)
 {
     this.rpcClient = rpcClient;
 }
예제 #4
0
        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;
            }
        }        
예제 #5
0
 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);            
 }