FileCloud API - XML Responses

XML response received from FileCloud HTTP server follows a standard pattern with items, meta and item element.

The following is the standard XML pattern received from FileCloud server.

 

<items>
 <meta> 
	<metaelement1>[Meta Element 1 value] 
	</metaelement1> <metaelement2>[Meta Element 2 value] 
	</metaelement2> 
</meta> 
<item> 
	<itemdetail1>[Item detail 1 value]<itemdetail1> 
	<itemdetail2>[Item detail 1 value]<itemdetail2> 
	<itemdetail3>[Item detail 1 value]<itemdetail3> 
</item> 
</items>

The items and item element will be renamed appropriately for each XML response received as shown below in the samples. On the other hand, meta element is optional.  Following are some of the sample XML response received.


In the loginguest response below, the items and item element are replaced with commands and command element respectively. The command element has type, result and message elements as itemdetail.

<commands> 
	<command> 
		<type>loginguese</type> 
		<result>1</result>
 		<message> </message> 
	</command>
</commands>

 

In the getfilelist response below, the items and item element are replaced with entries and entry element respectively. The entry element has path, dirpath, name, ext, isroot, type, fullfilename, size, modified, favoritelistid, favoriteid, order, fullsize, modifiedepoch elements as itemdetail. Note that, the getfilelist also returns the optional meta element with parentpath and total entry elements.

 

<entries>
		<meta>
			<parentpath>/apptester</parentpath>
			<total>133</total>
			<realpath>/apptester/Docs</realpath>
			<canupload>1</canupload>
			<isshareable>1</isshareable>
			<candownload>1</candownload>
			<cansetacls>0</cansetacls>
			<showshareoption>0</showshareoption>
			<teamfolder>0</teamfolder>
			<result>1</result>
			<message/>
			<defaultfile/>
		</meta>

		<entry>
			<path>/apptester/Docs/CA</path>
			<dirpath>/apptester/Docs/</dirpath>
			<name>CA</name>
			<ext/>
			<fullsize>0</fullsize>
			<modified>Dec 10, 2017 8:26 AM</modified>
			<type>dir</type>
			<fullfilename>/apptester/Docs/CA</fullfilename>
			<size/>
			<modifiedepoch>1512894360</modifiedepoch>
			<modifiediso>2017-12-10T08:26:00+0000</modifiediso>
			<isroot>0</isroot>
			<isshareable>1</isshareable>
			<issyncable>0</issyncable>
			<isshared/>
			<canrename>1</canrename>
			<showprev>0</showprev>
			<canfavorite>1</canfavorite>
			<canupload>1</canupload>
			<candownload>1</candownload>
			<favoritelistid>0</favoritelistid>
			<favoriteid>0</favoriteid>
			<order>0</order>
			<showquickedit>1</showquickedit>
			<showlockunlock>1</showlockunlock>
			<showshareoption>0</showshareoption>
			<cansetacls>0</cansetacls>
			<locked>0</locked>
		</entry>
</entries>