Permalink
Browse files

blabla and diigo odt

  • Loading branch information...
1 parent 9d03df4 commit d7af49fca6a1050316d91e899c9c0b3f198eb286 @iker iker committed May 16, 2011
Showing with 336 additions and 0 deletions.
  1. +153 −0 blabla/blabla.entry.xml
  2. +125 −0 blabla/blabla.list.xml
  3. +20 −0 blabla/blabla.lists.xml
  4. +38 −0 diigo/diigo.feeds.xml
View
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Iker Azpeitia</author>
+ <documentationURL>http://rifers.org/wiki/display/BLA/REST%20API.html</documentationURL>
+ <sampleQuery>INSERT INTO {table} (login, password, listId, name) VALUES ('oscaronekin', '12osin34', '40886', 'Test task');</sampleQuery>
+ <sampleQuery>UPDATE {table} SET fromPriority='6', toPriority='0' WHERE login= 'oscaronekin' AND password='12osin34' AND listId = '40886'</sampleQuery>
+ <sampleQuery>UPDATE {table} SET done='true' WHERE login= 'oscaronekin' AND password='12osin34' AND id = '254075'</sampleQuery>
+ <sampleQuery>UPDATE {table} SET name='name changed' WHERE login= 'oscaronekin' AND password='12osin34' AND id = '254075' AND listId = '40886'</sampleQuery>
+ <sampleQuery>DELETE FROM {table} WHERE login= 'oscaronekin' AND password='12osin34' AND id = '254075' AND listId = '40886'</sampleQuery>
+ </meta>
+ <bindings>
+ <insert itemPath="" produces="XML">
+ <urls>
+ <url></url>
+ </urls>
+ <inputs>
+ <key id="login" type="xs:string" paramType="variable" required="true"/>
+ <key id="password" type="xs:string" paramType="variable" required="true"/>
+ <key id="listId" type="xs:string" paramType="variable" required="true"/>
+ <key id="name" type="xs:string" paramType="variable" required="true"/>
+ </inputs>
+ <execute>
+ <![CDATA[
+ var url='http://blablalist.com/addentry?';
+ var q=url+'submission=credentials&login=';
+ q=q+login;
+ q=q+'&password='+password;
+ q=q+'&submission=add';
+ q=q+'&listId='+listId;
+ name = escape(name);
+ q=q+'&name='+name;
+
+ var results= y.rest(q).post().response;
+ var res = new XML (results);
+ response.object = res;
+ ]]>
+ </execute>
+ </insert>
+ <update itemPath="" produces="XML">
+ <urls>
+ <url></url>
+ </urls>
+ <inputs>
+ <key id="login" type="xs:string" paramType="variable" required="true"/>
+ <key id="password" type="xs:string" paramType="variable" required="true"/>
+ <key id="listId" type="xs:string" paramType="variable" required="true"/>
+ <value id="fromPriority" type="xs:string" paramType="variable" required="true"/>
+ <value id="toPriority" type="xs:string" paramType="variable" required="true"/>
+ </inputs>
+ <execute>
+ <![CDATA[
+ var url='http://blablalist.com/reorderentry?';
+ var q=url+'submission=credentials&login=';
+ q=q+login;
+ q=q+'&password='+password;
+ q=q+'&submission=reorderEntry';
+ q=q+'&listId='+listId;
+ q=q+'&from='+fromPriority;
+ q=q+'&to='+toPriority;
+
+ var results= y.rest(q).post().response;
+ var res = new XML (results);
+ response.object = res;
+ ]]>
+ </execute>
+ </update>
+ <update itemPath="" produces="XML">
+ <urls>
+ <url></url>
+ </urls>
+ <inputs>
+ <key id="login" type="xs:string" paramType="variable" required="true"/>
+ <key id="password" type="xs:string" paramType="variable" required="true"/>
+ <key id="id" type="xs:string" paramType="variable" required="true"/>
+ <value id="done" type="xs:string" paramType="variable" required="true"/>
+ </inputs>
+ <execute>
+ <![CDATA[
+ var url='http://blablalist.com/toggleentry?';
+ var q=url+'submission=credentials&login=';
+ q=q+login;
+ q=q+'&password='+password;
+ q=q+'&submission=toggle';
+ q=q+'&id='+id;
+ q=q+'&done='+done;
+
+ var results= y.rest(q).post().response;
+ var res = new XML (results);
+ response.object = res;
+ ]]>
+ </execute>
+ </update>
+
+ <update itemPath="" produces="XML">
+ <urls>
+ <url></url>
+ </urls>
+ <inputs>
+ <key id="login" type="xs:string" paramType="variable" required="true"/>
+ <key id="password" type="xs:string" paramType="variable" required="true"/>
+ <key id="listId" type="xs:string" paramType="variable" required="true"/>
+ <key id="id" type="xs:string" paramType="variable" required="true"/>
+ <value id="name" type="xs:string" paramType="variable" required="true"/>
+ </inputs>
+ <execute>
+ <![CDATA[
+ var url='http://blablalist.com/editlist?';
+ var q=url+'submission=credentials&login=';
+ q=q+login;
+ q=q+'&password='+password;
+ q=q+'&submission=edit';
+ q=q+'&id='+listId;
+ name = escape(name);
+ q=q+'&entry'+id+'='+name;
+
+ var results= y.rest(q).post().response;
+ var res = new XML (results);
+ response.object = res;
+ ]]>
+ </execute>
+ </update>
+
+ <delete itemPath="" produces="XML">
+ <urls>
+ <url></url>
+ </urls>
+ <inputs>
+ <key id="login" type="xs:string" paramType="variable" required="true"/>
+ <key id="password" type="xs:string" paramType="variable" required="true"/>
+ <key id="listId" type="xs:string" paramType="variable" required="true"/>
+ <key id="id" type="xs:string" paramType="variable" required="true"/>
+ </inputs>
+ <execute>
+ <![CDATA[
+ var url='http://blablalist.com/editlist?';
+ var q=url+'submission=credentials&login=';
+ q=q+login;
+ q=q+'&password='+password;
+ q=q+'&submission=edit';
+ q=q+'&id='+listId;
+ q=q+'&remove='+id;
+
+ var results= y.rest(q).post().response;
+ var res = new XML (results);
+ response.object = res;
+ ]]>
+ </execute>
+ </delete>
+
+ </bindings>
+</table>
+
View
@@ -0,0 +1,125 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Iker Azpeitia</author>
+ <documentationURL>http://rifers.org/wiki/display/BLA/REST%20API.html</documentationURL>
+ <sampleQuery>SELECT * FROM {table} WHERE login= 'oscaronekin' AND password='12osin34' AND listId = '40886'</sampleQuery>
+ <sampleQuery>INSERT INTO {table} (login, password, name) VALUES ('oscaronekin', '12osin34', 'Test list')</sampleQuery>
+ <sampleQuery>UPDATE {table} SET name='Todo: things to do some day', shortName='todolist', description='I will do this things some day' WHERE login= 'oscaronekin' AND password='12osin34' AND listId = '40886'</sampleQuery>
+ <sampleQuery>DELETE FROM {table} WHERE login= 'oscaronekin' AND password='12osin34' AND listId = '40914'</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url/>
+ </urls>
+ <inputs>
+ <key id="login" type="xs:string" paramType="variable" required="true"/>
+ <key id="password" type="xs:string" paramType="variable" required="true"/>
+ <key id="listId" type="xs:string" paramType="variable" required="true"/>
+ </inputs>
+ <execute>
+ <![CDATA[
+ var url= 'http://blablalist.com/getlist?';
+ var q=url+'submission=credentials&login='
+ q=q+login;
+ q=q+'&password='+password;
+ q=q+'&id='+listId;
+
+ var results= y.rest(q).post().response;
+ var res = new XML (results);
+ response.object = res;
+ ]]>
+ </execute>
+ </select>
+ <insert itemPath="" produces="XML">
+ <urls>
+ <url></url>
+ </urls>
+ <inputs>
+ <key id="login" type="xs:string" paramType="variable" required="true"/>
+ <key id="password" type="xs:string" paramType="variable" required="true"/>
+ <key id="name" type="xs:string" paramType="variable" required="true"/>
+ </inputs>
+ <execute>
+ <![CDATA[
+ var url='http://blablalist.com/createlist?';
+ var q=url+'submission=credentials&login=';
+ q=q+login;
+ q=q+'&password='+password;
+ q=q+'&submission=create';
+ name = escape(name);
+ q=q+'&name='+name;
+
+ var results= y.rest(q).post().response;
+ var res = new XML (results);
+ response.object = res;
+ ]]>
+ </execute>
+ </insert>
+ <update itemPath="" produces="XML">
+ <urls>
+ <url></url>
+ </urls>
+ <inputs>
+ <key id="login" type="xs:string" paramType="variable" required="true"/>
+ <key id="password" type="xs:string" paramType="variable" required="true"/>
+ <key id="listId" type="xs:string" paramType="variable" required="true"/>
+ <value id="name" type="xs:string" paramType="variable" required="false"/>
+ <value id="shortName" type="xs:string" paramType="variable" required="false"/>
+ <value id="description" type="xs:string" paramType="variable" required="false"/>
+ </inputs>
+ <execute>
+ <![CDATA[
+ var url='http://blablalist.com/editlist?';
+ var q=url+'submission=credentials&login=';
+ q=q+login;
+ q=q+'&password='+password;
+ q=q+'&submission=edit';
+ q=q+'&id='+listId;
+ if (name != null){
+ name = escape(name);
+ q=q+'&name='+name;
+ }
+ if (shortName != null){
+ shortName = escape(shortName);
+ q=q+'&shortName='+shortName;
+ }
+ if (description != null){
+ description = escape(description);
+ q=q+'&description='+description;
+ }
+
+ var results= y.rest(q).post().response;
+ var res = new XML (results);
+ response.object = res;
+ ]]>
+ </execute>
+ </update>
+ <delete itemPath="" produces="XML">
+ <urls>
+ <url></url>
+ </urls>
+ <inputs>
+ <key id="login" type="xs:string" paramType="variable" required="true"/>
+ <key id="password" type="xs:string" paramType="variable" required="true"/>
+ <key id="listId" type="xs:string" paramType="variable" required="true"/>
+ </inputs>
+ <execute>
+ <![CDATA[
+ var url = 'http://blablalist.com/deletelist?';
+ var q=url+'submission=credentials&login=';
+ q=q+login;
+ q=q+'&password='+password;
+ q=q+'&submission=delete';
+ q=q+'&id='+listId;
+
+ var results= y.rest(q).post().response;
+ var res = new XML (results);
+ response.object = res;
+ ]]>
+ </execute>
+ </delete>
+ </bindings>
+</table>
+
View
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Iker Azpeitia</author>
+ <documentationURL>http://rifers.org/wiki/display/BLA/REST%20API.html</documentationURL>
+ <sampleQuery>SELECT * FROM {table} WHERE login='oscaronekin' and password='12osin34';</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url>http://blablalist.com/fetchlists?submission=credentials</url>
+ </urls>
+ <inputs>
+ <key id="login" type="xs:string" paramType="query" required="true"/>
+ <key id="password" type="xs:string" paramType="query" required="true"/>
+ </inputs>
+ </select>
+ </bindings>
+</table>
+
View
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Iker Azpeitia</author>
+ <documentationURL>http://www.diigo.com/</documentationURL>
+ <sampleQuery>SELECT * FROM {table} WHERE username='oscaronekin' AND tag='toread'</sampleQuery>
+ <sampleQuery>SELECT * FROM {table} WHERE username='oscaronekin'</sampleQuery>
+ <sampleQuery>SELECT * FROM {table}</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="rss.channel.item" produces="XML">
+ <urls>
+ <url>http://www.diigo.com/rss/user/{username}/{tag}{-prefix|%20|tag2}{-prefix|%20|tag3}</url>
+ </urls>
+ <inputs>
+ <key id="tag" type="xs:string" paramType="path"/>
+ <key id="tag2" type="xs:string" paramType="path"/>
+ <key id="tag3" type="xs:string" paramType="path"/>
+ <key id="username" type="xs:string" paramType="path" required="true"/>
+ </inputs>
+ </select>
+ <select itemPath="rss.channel.item" produces="XML">
+ <urls>
+ <url>http://www.diigo.com/rss/tag/{tag}{-prefix|%20|tag2}{-prefix|%20|tag3}</url>
+ </urls>
+ <inputs>
+ <key id="tag" type="xs:string" paramType="path" required="true"/>
+ <key id="tag2" type="xs:string" paramType="path"/>
+ <key id="tag3" type="xs:string" paramType="path"/>
+ </inputs>
+ </select>
+ <select itemPath="rss.channel.item" produces="XML">
+ <urls>
+ <url>http://www.diigo.com/rss/</url>
+ </urls>
+ </select>
+ </bindings>
+</table>

0 comments on commit d7af49f

Please sign in to comment.