Documentation
CALL WEBACCOUNT
usage
<CALL>
<WEBACCOUNT [ID="number,number,..."]>
<METHOD>
[<ARG1>...</ARG1>
<ARG2>...</ARG2>... ]
</METHOD>
</WEBACCOUNT>
</CALL>
paramètres
ID: a list of numerical identifier of the webaccounts to call. If not set, sushee will call all webaccounts.
METHOD: the method you want to call, available in the API classfile. See WEBAPI to know how to add new methods. Twitter, Dropbox and LinkedIn have a liste of predefined methods, you can find them in the sushee/webaccount/apis/ folder.
ARG: a list of arguments passed to the method, which depends on the method called. The method receives the XMLNode containing the args and has to parse it manually.
Interact with webapis like Twitter, Dropbox, LinkedIn. The webaccount(s) must first be authorized to be called without having to identify. A same CALL can be applied on several webaccounts, allowing to multi-post, multi-upload, etc.
exemples
<!-- TWITTER -->
<CALL>
<WEBACCOUNT ID="2">
<GETFEED></GETFEED>
</WEBACCOUNT>
</CALL>
<CALL>
<WEBACCOUNT ID="2">
<GETPROFILE></GETPROFILE>
</WEBACCOUNT>
</CALL>
<CALL>
<WEBACCOUNT ID="2">
<POSTMESSAGE>
<TEXT>Webaccount on a good way</TEXT>
</POSTMESSAGE>
</WEBACCOUNT>
</CALL>
<!-- LINKEDIN -->
<CALL>
<WEBACCOUNT ID="7">
<GETPROFILE/>
</WEBACCOUNT>
</CALL>
<!-- list of friends -->
<CALL>
<WEBACCOUNT ID="7">
<GETFRIENDS/>
</WEBACCOUNT>
</CALL>
<CALL>
<WEBACCOUNT ID="7">
<SEARCHUSER>peggy</SEARCHUSER>
</WEBACCOUNT>
</CALL>
<!-- Connecting François Dispaux -->
<CALL>
<WEBACCOUNT ID="7">
<CONNECTUSER>ObduLZfZlR</CONNECTUSER>
</WEBACCOUNT>
</CALL>
<!-- Posting message -->
<CALL>
<WEBACCOUNT ID="7">
<POSTMESSAGE>
<TEXT>Sushee linkedin test battery</TEXT>
</POSTMESSAGE>
</WEBACCOUNT>
</CALL>
<!-- DROPBOX -->
<!-- DropBox list files -->
<CALL>
<WEBACCOUNT ID="8">
<LISTFILES></LISTFILES>
</WEBACCOUNT>
</CALL>
<!-- DropBox upload file -->
<CALL>
<WEBACCOUNT ID="8">
<UPLOADFILE>
<PATH>/contact/1857/index.html</PATH>
<TARGET>/</TARGET>
</UPLOADFILE>
</WEBACCOUNT>
</CALL>
<!-- DropBox download file -->
<CALL>
<WEBACCOUNT ID="8">
<DOWNLOADFILE>
<PATH>/index.html</PATH>
<TARGET>/contact/2/</TARGET>
</DOWNLOADFILE>
</WEBACCOUNT>
</CALL>