Permalink
Browse files

hmeme is obsolete

hgs can now allow for spaces in query entries
hgsp and hgss are based on hgs so i deleted them
hmse is based on hyema
hmssi is based on hysima
hmssu is based on hysuma
hmst is based on hytma
so I deleted hmse, hmssi hmssu and hmst , people can manipulate the hy- tables to extract what they need

hyfm is unchanged but it gives the latest message in a group
  • Loading branch information...
1 parent bcdb36f commit 00ca7f9f265660b4500e69e228a482c74ed1ee6d @houyhnhnm committed Oct 7, 2012
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" securityLevel="any">
- <meta>
- <author>HOUYHNHNM</author>
- <description> Deletes multiple entries from your Meme account NOTE: count is default maximum allowed 5000 entries or as many within 30 seconds under 5000</description>
- <documentationURL></documentationURL>
- <sampleQuery>select * from {table} where count="The number of entries to be deleted"</sampleQuery>
- </meta>
- <bindings>
- <select itemPath="" produces="XML">
- <inputs>
- <key id='count' type='xs:string' paramType='variable' required="false"/>
- </inputs>
- <execute>
- <![CDATA[
-
-
- var str1="SELECT * FROM meme.posts(0";
- var str3="WHERE owner_guid=me;";
- if(count)
- {
- str1=str1.concat(",",count,") ",str3);
- }
- else
- {
- str1=str1.concat(") ",str3);
- }
- var yqlquery=y.query(str1);
- var yqlresults=yqlquery.results;
- var yqlcounter=parseInt(yqlresults.post.length());
- var index=0;
- var xmlret=new XML();
- xmlret=<root><count>{yqlcounter}</count></root>;
- var pvar;
- var str2="DELETE FROM meme.user.posts WHERE pubid = \"";
- var yqlquery2;
- var yqlresults2;
- while(index<yqlcounter)
- {
- pvar=yqlresults.post[index].pubid;
- yqlquery2=y.query(str2.concat(pvar,"\""));
- yqlresults2=yqlquery2.results;
-
- xmlret.root+=<returnvalues>
- <index>{index+1}</index>
- <code>{yqlresults2.status.code}</code>
- <message>{yqlresults2.status.message}</message>
- </returnvalues>
-
- index++;
- }
- response.object=xmlret;
- ]]>
- </execute>
- </select>
- </bindings>
-</table>
@@ -87,7 +87,8 @@
var urlstring3="&sort=";
var yqlstring2="\" and xpath=\"//li[@class='hbox groupsSearch-result-entry']\"";
- var yqlquery=y.query(yqlstring1+urlstring1+query+urlstring2+String(pagevar)+urlstring3+typevar+yqlstring2);
+ var inputstring=new String(query);
+ var yqlquery=y.query(yqlstring1+urlstring1+encodeURIComponent(inputstring)+urlstring2+String(pagevar)+urlstring3+typevar+yqlstring2);
var yqlresults=yqlquery.results;
var yqlcounter=parseInt(yqlresults.li.length());
var index=0;
@@ -1,118 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" securityLevel="any">
- <meta>
- <author>HOUYHNHNM</author>
- <description>Acquires the public groups from Yahoo Group search on a given page and type</description>
- <documentationURL>http://meme.yahoo.com/h_dev/p/b9edSAr/</documentationURL>
- <sampleQuery>select * from {table} where query="yahoo"</sampleQuery>
- <sampleQuery>select * from {table} where query="yahoo" AND page="1"</sampleQuery>
- <sampleQuery>select * from {table} where query="yahoo" AND type="r"</sampleQuery>
- <sampleQuery>select * from {table} where query="yahoo" AND type="m" AND page="1"</sampleQuery>
- </meta>
- <bindings>
- <select itemPath="" produces="XML">
- <inputs>
- <key id='query' type='xs:string' paramType='variable' required="true" />
- <key id='type' type='xs:string' paramType='variable' required="false" />
- <key id='page' type='xs:string' paramType='variable' required="false" />
- </inputs>
- <execute>
- <![CDATA[
-
- var pagevar=0;
- if(page)
- {
- pagevar=parseInt(page);
- if(pagevar>0)
- {
- //do nothing and jump out
- }
- else
- {
- pagevar=1;
- }
- }
- else
- {
- pagevar=1;
- }
-
- var typevar="";
- if(type)
- {
- if(type.match("r")!=null)
- {
- typevar=type;
- }
- else
- {
- if(type.match("o")!=null)
- {
- typevar=type;
- }
- else
- {
- if(type.match("n")!=null)
- {
- typevar=type;
- }
- else
- {
- if(type.match("m")!=null)
- {
- typevar=type;
- }
- else
- {
- typevar="r";
- }
- }
- }
- }
-
- }
- else
- {
- typevar="r";
- }
-
- var yqlstring1="USE \"http://houyhnhnmui.wikispaces.com/file/view/HGS.xml\" AS mytable; select * from mytable where query=\"";
- var yqlstring2="\" AND type=\"";
- var yqlstring3="\" AND page=\"";
- var yqlstring4="\"";
-
- var yqlquery=y.query(yqlstring1+query+yqlstring2+typevar+yqlstring3+String(pagevar)+yqlstring4);
- var yqlresults=yqlquery.results;
- var yqlcounter=parseInt(yqlresults.root.node.length());
- var index=0;
- var counter=0;
- var checker="";
- var xmlret=new XML();
- xmlret=<root></root>;
- while(index<yqlcounter)
- {
- checker=yqlresults.root.node[index].archive.text();
- if(checker.match("Public")!=null)
- {
- xmlret.root+=<node>
- <anchor>{yqlresults.root.node[index].anchor.text()}</anchor>
- <name>{yqlresults.root.node[index].name.text()}</name>
- <description>{yqlresults.root.node[index].description.text()}</description>
- <members>{yqlresults.root.node[index].members.text()}</members>
- <latest>{yqlresults.root.node[index].latest.text()}</latest>
- <creation>{yqlresults.root.node[index].creation.text()}</creation>
- <archive>{yqlresults.root.node[index].archive.text()}</archive>
- <moderated>{yqlresults.root.node[index].moderated.text()}</moderated>
- </node>
- counter=counter+1;
- }
- index=index+1;
- }
- xmlret.root+=<count>{counter}</count>;
- response.object=xmlret;
-
- ]]>
- </execute>
- </select>
- </bindings>
-</table>
Oops, something went wrong.

0 comments on commit 00ca7f9

Please sign in to comment.