<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0">

    <channel>

        <title>XMLRPC API</title>
        <link>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api</link>
        <description>List of methods and their purpose that are currently exposed by cyn.in. This is maintained with respect to 2.1 release.</description>

        <generator>basesyndication</generator>

        <image>
            <title>XMLRPC API</title>
            <url>http://www.cynapse.com/community/logo.jpg</url>
            <link>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api</link>
        </image>

        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1278425001</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1278425001</link>
                <description>thanks, the getSpaces() was exactly what I was looking for!</description>
                <author>Stefan V.</author>


                <pubDate>Tue, 06 Jul 2010 14:03:22 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title>XMLRPC API</title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api</link>
                <description>
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getSiteTitle(self):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Return the site title"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getRecentUpdates(self,maxitemcount=5,pagenumber=1):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Return the recent updates"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def refreshUpdateItem(self,uid):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Resends a single item of the same structure as the one in getRecentUpdates with the most updated info"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getTypeInfo(self,typename):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Returns the type title and icon url for given typename"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getUserInfo(self,userid):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Return the user name details, and avatar url for given userid"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getWikiBody(self,uid):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Return the wiki body text, pre-cooked and processed"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getEventInfo(self,uid):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Return the information available for a Calendar Event"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getFileInfo(self,uid):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Return the info available for a file"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getLinkInfo(self,uid):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Return the info available for a link"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getBlogEntry(self,uid):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Return the info available for a Blog Entry"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getComments(self,uid):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Return all the comments for the given object's UID"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def addNewComment(self,uid,subject,text,commenter):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Adds a comment on the provided UID with given subject, text and commenter user"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def replyToComment(self,uid,subject,text,commenter):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Replies to the given comment's UID with given subject, text and commenter user"""&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getUpdateCount(self):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Returns number of recent items available for recent user"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def search(self,searchableText,maxitemcount=5,pagenumber=1):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Returns result for search text entered for recent user"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def searchIds(self,searchableText='',maxitemcount=5,pagenumber=1):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Returns search results with only id, lastchangedate and relevance for search text entered."""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getStatusMessages(self,username='',count=1,pagenumber=1):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Returns current status message for passed username. For empty username method returns status message for current user"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getStatusMessage(self,username=''):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Returns current status message of passed user as string"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def setStatusMessage(self,message):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Set status log message for current user"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getLastChangeDate(self):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Returns the max lastchangedate for the logged in user."""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getRecentItemIds(self,maxitemcount=5,pagenumber=1):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Return the recent UIDs, up to a maximum of maxitemcount items will be returned in a list"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getSearchItemsByIds(self,arrUIDs):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Return the search items as per the UIDs requested."""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getItemsByIds(self,maxitemcount=5,pagenumber=1):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Return the Update items as per the UIDs requested."""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getUsersByIds(self,arrUserIds):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Return the user info objects for the users specified"""&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def getTypesByNames(self,arrTypeNames):&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; """Return the type info objects for the type names specified"""&lt;/p&gt;
&lt;h3&gt;Python Example&lt;/h3&gt;
&lt;p&gt;Create a script called 'sitetitle.py'&lt;/p&gt;
&lt;pre&gt;import xmlrpclib
username = "yourname"
password = "yourpassword"
siteurl = "http://www.cynapse.com/community" # change this to match your cyn.in portal
proxy = xmlrpclib.ServerProxy("http://%s:%s@%s/stacker" % (username,password,siteurl))
print proxy.getSiteTitle()&lt;/pre&gt;
&lt;p&gt;The expected output will look like this:&lt;/p&gt;
&lt;pre&gt;python sitetitle.py&lt;/pre&gt;
&lt;p&gt;similar code could easily be added to any python framework to support interaction with your cyn.in portal&lt;/p&gt;
&lt;h2&gt;PHP Example&lt;br /&gt;&lt;/h2&gt;
To do this with PHP, look here:&amp;nbsp;&lt;a title="Getting new items via PHP and XMLRPC" class="internal-link" href="/community/home/cyn.in-developers/getting-new-items-via-php-and-xmlrpc"&gt;Getting new items via PHP and XMLRPC&lt;/a&gt;
                        </description>
                <author>Dhiraj Gupta</author>

                
                    <category>xmlrpc</category>
                
                
                    <category>python</category>
                
                
                    <category>api</category>
                
                
                    <category>php</category>
                
                
                    <category>example</category>
                

                <pubDate>Tue, 06 Jul 2010 14:03:22 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1278401336</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1278401336</link>
                <description>The full, updated list of functions is always available from the interfaces.py file in the ubify.xmlrpc product. Similarly stacker.py has definition for most of the methods in the interfaces.py contract.&lt;br /&gt;&lt;br /&gt;ODN view (cynapse.com login required): &lt;a href="http://odn.cynapse.com/projects/cynin/repository/entry/trunk/src/ubify.xmlrpc/ubify/xmlrpc/interfaces.py" rel="nofollow"&gt;http://odn.cynapse.com/[&amp;hellip;]/interfaces.py&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Adding new methods to the API is not difficult; is there a particular function that you need? If you're looking to get a list of Spaces that are available, look at using the getSpaces() call; this will return a nested struct of Spaces that are visible to the user you're using to call the method.</description>
                <author>Dhiraj Gupta</author>


                <pubDate>Tue, 06 Jul 2010 07:28:56 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1278332777</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1278332777</link>
                <description>Are there more methods? For example to get the Searchfolders or the Areas? Or is this the full list?</description>
                <author>Stefan V.</author>


                <pubDate>Mon, 05 Jul 2010 12:26:18 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1277275400</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1277275400</link>
                <description>Java will have some issues handling utf-8. We will try to solve. Just wondering about HTML codes in message text which are different to title text. The HTML codes are shown in desktop client header text in detail view, which I have already reported in bug tracker.</description>
                <author>Guido Kopkow</author>


                <pubDate>Wed, 23 Jun 2010 06:43:20 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1277235142</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1277235142</link>
                <description>Yes, output should be utf-8 encoded. What's going wrong?</description>
                <author>Dhiraj Gupta</author>


                <pubDate>Tue, 22 Jun 2010 19:32:22 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1277230156</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1277230156</link>
                <description>Using getRecentUpdates method, the message text contains special characters which are HTML coded. The title text contains different coded character. Which format is it? utf-8?</description>
                <author>Guido Kopkow</author>


                <pubDate>Tue, 22 Jun 2010 18:09:16 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1277120571</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1277120571</link>
                <description>I changed the parameters and now it works fine. thank you for your suggestion.</description>
                <author>Stefan V.</author>


                <pubDate>Mon, 21 Jun 2010 11:42:51 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1277117099</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1277117099</link>
                <description>Hmm.... Are you sending any parameters to getRecentUpdates() call? This looks like an argument parsing / sending exception? Does it say something more specific on the Cyn.in Server side in an exception trace in the instance log?&lt;br /&gt;&lt;br /&gt;How to see this log? Either run your test Cyn.in instance in &amp;quot;fg&amp;quot; mode (with ./bin/instance fg command) or do a tail -f on both the log files in &amp;lt;buildout home&amp;gt;/var/logs folder if you're testing with your testing with your live production.</description>
                <author>Dhiraj Gupta</author>


                <pubDate>Mon, 21 Jun 2010 10:44:59 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1277115130</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1277115130</link>
                <description>I try to implement a JavaClient for Cynapse. I already got an array of Strings (getTypeInfo) without any problems. Now I tried to call the method &amp;quot;getRecentUpdates&amp;quot; and receive the message &amp;quot;Unexpected Zope exception: exceptions.TypeError - can't multiply sequence by non-int&amp;quot;. Any ideas, how to solve the problem?</description>
                <author>Stefan V.</author>


                <pubDate>Mon, 21 Jun 2010 10:12:10 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1276723828</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1276723828</link>
                <description>Yes, we will post Java code as soon as testing is finished. THX for your remarks.</description>
                <author>Guido Kopkow</author>


                <pubDate>Wed, 16 Jun 2010 21:30:28 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1276685005</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1276685005</link>
                <description>Hmm... good point, the interface contract does not define the return structure. Consider going through the python code of the particular API methods you want to hook up. Typically the implementation will be found in stacker.py and from this you can figure out what the return might be.&lt;br /&gt;Note: Sometimes the return can vary in error conditions, so I'm not really sure that endpoint marshalling/stub code might be up to the task, in Java. Remember to study the particular method codes to analyze if an error will return something or throw an XML-RPC fault. In case of fault the result should be handle-able, in Java.&lt;br /&gt;&lt;br /&gt;Consider putting down a simplified example for your Java end-point for discussion and usage by the community as well, just like the PHP one. :)</description>
                <author>Dhiraj Gupta</author>


                <pubDate>Wed, 16 Jun 2010 10:43:26 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1276629864</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1276629864</link>
                <description>Is there also a description of return data structure available? We are using Java as client, which requires data type description of returned values. </description>
                <author>Guido Kopkow</author>


                <pubDate>Tue, 15 Jun 2010 19:24:25 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1275634316</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1275634316</link>
                <description>Many THX!</description>
                <author>Guido Kopkow</author>


                <pubDate>Fri, 04 Jun 2010 06:51:56 +0000</pubDate>

                
            </item>
        
        
            <item>
                <title></title>
                <guid>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1275561853</guid>
                <link>http://www.cynapse.com/community/home/cyn.in-developers/xmlrpc-api/view/#1275561853</link>
                <description>Here: &lt;a href="http://odn.cynapse.com/svn/cynin/trunk/src/ubify.xmlrpc/ubify/xmlrpc/interfaces.py" rel="nofollow"&gt;http://odn.cynapse.com/[&amp;hellip;]/interfaces.py&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Alternatively, use this URL for a syntax highlighted view (requires cynapse.com login):&lt;br /&gt;&lt;a href="http://odn.cynapse.com/projects/cynin/repository/entry/trunk/src/ubify.xmlrpc/ubify/xmlrpc/interfaces.py" rel="nofollow"&gt;http://odn.cynapse.com/[&amp;hellip;]/interfaces.py&lt;/a&gt;</description>
                <author>Dhiraj Gupta</author>


                <pubDate>Thu, 03 Jun 2010 10:44:13 +0000</pubDate>

                
            </item>
        

    </channel>
</rss>

