Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed Google Seaarch default language from French to English.

  • Loading branch information...
commit dc7b85c8b9f7a340689e05e499f19e755f8c92f5 1 parent b758869
unknown authored
View
4 google/google.search.xml
@@ -17,8 +17,8 @@
</paging>
<inputs>
<key id='q' type='xs:string' paramType='query' />
- <key id="hl" type="xs:string" paramType="query" required="false" default="fr"/>
- <key id="gl" type="xs:string" paramType="query" required="false" default="fr"/>
+ <key id="hl" type="xs:string" paramType="query" required="false" default="en"/>
+ <key id="gl" type="xs:string" paramType="query" required="false" default="en"/>
<key id='apikey' type='xs:string' paramType='variable' default='ABQIAAAAeHT5AZJqD5Xx9uPnCAeATBQlKU5X1qPXe538nLHTe0ksK9Nz0BSYjRoJw4Ss40xXg-aYj4es-iO9Pg' private='true' />
</inputs>
</select>
View
74 rtm/rtm.auth.frob.xml
@@ -1,37 +1,37 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
- <meta>
- <author>Vipul Bhasin</author>
- <documentationURL>
- http://www.rememberthemilk.com/services/api/authentication.rtm
- </documentationURL>
- <sampleQuery>
- select * from {table} where api_key="api_key" and secret="secret";
- </sampleQuery>
- </meta>
- <bindings>
- <select itemPath="rsp" produces="XML">
- <urls>
- <url>http://api.rememberthemilk.com/services/rest</url>
- </urls>
- <inputs>
- <key id="api_key" type="xs:string" paramType="variable" required="true" />
- <key id="secret" type="xs:string" paramType="variable" required="true" />
- <key id="method" type="xs:string" paramType="variable" const="true" default="rtm.auth.getFrob" />
- </inputs>
- <execute><![CDATA[
- // Include the md5 library and the rtm signing library
- y.include("http://rtmapihelper.googlecode.com/files/rtm-0.2.js");
-
- // Sign the URL and return the frob
- var rtmSign = new RTMSigner(api_key, secret);
-
- var resp = y.rest(rtmSign.createURL({method:method})).get().response;
-
- response.object = resp;
-
- ]]>
- </execute>
- </select>
- </bindings>
-</table>
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Vipul Bhasin</author>
+ <documentationURL>
+ http://www.rememberthemilk.com/services/api/authentication.rtm
+ </documentationURL>
+ <sampleQuery>
+ select * from {table} where api_key="api_key" and secret="secret";
+ </sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="rsp" produces="XML">
+ <urls>
+ <url>http://api.rememberthemilk.com/services/rest</url>
+ </urls>
+ <inputs>
+ <key id="api_key" type="xs:string" paramType="variable" required="true" />
+ <key id="secret" type="xs:string" paramType="variable" required="true" />
+ <key id="method" type="xs:string" paramType="variable" const="true" default="rtm.auth.getFrob" />
+ </inputs>
+ <execute><![CDATA[
+ // Include the md5 library and the rtm signing library
+ y.include("http://rtmapihelper.googlecode.com/files/rtm-0.2.js");
+
+ // Sign the URL and return the frob
+ var rtmSign = new RTMSigner(api_key, secret);
+
+ var resp = y.rest(rtmSign.createURL({method:method})).get().response;
+
+ response.object = resp;
+
+ ]]>
+ </execute>
+ </select>
+ </bindings>
+</table>
View
98 rtm/rtm.auth.oauth_href.xml
@@ -1,49 +1,49 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
- <meta>
- <author>Vipul Bhasin</author>
- <documentationURL>
- http://www.rememberthemilk.com/services/api/authentication.rtm
- </documentationURL>
- <sampleQuery>
- select * from {table} where api_key="api_key" and secret="secret" and frob="frob";
- </sampleQuery>
- <sampleQuery>
- use "rtm.auth.frob.xml" as frob_table;
- select * from {table} where api_key="api_key" and secret="secret" and
- frob in (select frob from frob_table where api_key="api_key" and secret="secret")
- </sampleQuery>
- </meta>
- <bindings>
- <select itemPath="" produces="XML">
- <urls>
- <url>http://api.rememberthemilk.com/services/rest</url>
- </urls>
- <inputs>
- <key id="api_key" type="xs:string" paramType="variable" required="true" />
- <key id="secret" type="xs:string" paramType="variable" required="true" />
- <key id="frob" type="xs:string" paramType="variable" required="true" />
- <key id="perms" type="xs:string" paramType="variable" const="true" default="read" />
- </inputs>
- <execute><![CDATA[
- // Include the md5 library and the rtm signing library
- y.include("http://vipulb.com/yql/rtm-0.2.js");
-
- // Sign the URL and return the frob
- var rtmSign = new RTMSigner(api_key, secret);
-
- var params = {
- "api_key":api_key,
- "perms" : perms,
- "frob" : frob,
- };
-
- var resp = rtmSign.createURL(params, {webAuth: true});
-
- response.object = resp;
-
- ]]>
- </execute>
- </select>
- </bindings>
-</table>
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Vipul Bhasin</author>
+ <documentationURL>
+ http://www.rememberthemilk.com/services/api/authentication.rtm
+ </documentationURL>
+ <sampleQuery>
+ select * from {table} where api_key="api_key" and secret="secret" and frob="frob";
+ </sampleQuery>
+ <sampleQuery>
+ use "rtm.auth.frob.xml" as frob_table;
+ select * from {table} where api_key="api_key" and secret="secret" and
+ frob in (select frob from frob_table where api_key="api_key" and secret="secret")
+ </sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="" produces="XML">
+ <urls>
+ <url>http://api.rememberthemilk.com/services/rest</url>
+ </urls>
+ <inputs>
+ <key id="api_key" type="xs:string" paramType="variable" required="true" />
+ <key id="secret" type="xs:string" paramType="variable" required="true" />
+ <key id="frob" type="xs:string" paramType="variable" required="true" />
+ <key id="perms" type="xs:string" paramType="variable" const="true" default="read" />
+ </inputs>
+ <execute><![CDATA[
+ // Include the md5 library and the rtm signing library
+ y.include("http://vipulb.com/yql/rtm-0.2.js");
+
+ // Sign the URL and return the frob
+ var rtmSign = new RTMSigner(api_key, secret);
+
+ var params = {
+ "api_key":api_key,
+ "perms" : perms,
+ "frob" : frob,
+ };
+
+ var resp = rtmSign.createURL(params, {webAuth: true});
+
+ response.object = resp;
+
+ ]]>
+ </execute>
+ </select>
+ </bindings>
+</table>
View
88 rtm/rtm.auth.token.xml
@@ -1,44 +1,44 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
- <meta>
- <author>Vipul Bhasin</author>
- <documentationURL>
- http://www.rememberthemilk.com/services/api/
- </documentationURL>
- <sampleQuery>
- select * from {table} where api_key="api_key" and secret="secret" and frob="frob";
- </sampleQuery>
- </meta>
- <bindings>
- <select itemPath="rsp" produces="XML">
- <urls>
- <url>http://api.rememberthemilk.com/services/rest</url>
- </urls>
- <inputs>
- <key id="api_key" type="xs:string" paramType="variable" required="true" />
- <key id="secret" type="xs:string" paramType="variable" required="true" />
- <key id="frob" type="xs:string" paramType="variable" required="true" />
- <key id="method" type="xs:string" paramType="variable" const="true" default="rtm.auth.getToken" />
- </inputs>
- <execute><![CDATA[
- // Include the md5 library and the rtm signing library
- y.include("http://rtmapihelper.googlecode.com/files/rtm-0.2.js");
-
- // Sign the URL and return the frob
- var rtmSign = new RTMSigner(api_key, secret);
-
- var params = {
- "api_key": api_key,
- "method" : method,
- "frob" : frob
- };
-
- var resp = y.rest(rtmSign.createURL(params)).get().response;
-
- response.object = resp;
-
- ]]>
- </execute>
- </select>
- </bindings>
-</table>
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd" https="true">
+ <meta>
+ <author>Vipul Bhasin</author>
+ <documentationURL>
+ http://www.rememberthemilk.com/services/api/
+ </documentationURL>
+ <sampleQuery>
+ select * from {table} where api_key="api_key" and secret="secret" and frob="frob";
+ </sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="rsp" produces="XML">
+ <urls>
+ <url>http://api.rememberthemilk.com/services/rest</url>
+ </urls>
+ <inputs>
+ <key id="api_key" type="xs:string" paramType="variable" required="true" />
+ <key id="secret" type="xs:string" paramType="variable" required="true" />
+ <key id="frob" type="xs:string" paramType="variable" required="true" />
+ <key id="method" type="xs:string" paramType="variable" const="true" default="rtm.auth.getToken" />
+ </inputs>
+ <execute><![CDATA[
+ // Include the md5 library and the rtm signing library
+ y.include("http://rtmapihelper.googlecode.com/files/rtm-0.2.js");
+
+ // Sign the URL and return the frob
+ var rtmSign = new RTMSigner(api_key, secret);
+
+ var params = {
+ "api_key": api_key,
+ "method" : method,
+ "frob" : frob
+ };
+
+ var resp = y.rest(rtmSign.createURL(params)).get().response;
+
+ response.object = resp;
+
+ ]]>
+ </execute>
+ </select>
+ </bindings>
+</table>
View
72 urbanesia/urbanesia.search.xml
@@ -1,37 +1,37 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
- <meta>
- <author>Urbanesia</author>
- <description>Urbanesia Search API</description>
- <documentationURL>http://api.urbanesia.com/search?output_type=array</documentationURL>
- <sampleQuery>select * from {table} WHERE apikey = '45c19606fab8' AND what='resto'</sampleQuery>
- </meta>
- <bindings>
- <select itemPath="data.result" produces="XML">
- <urls>
- <url>http://api.urbanesia.com/search?output_type=xml</url>
- </urls>
- <paging model="offset">
- <start id="page" default="0" />
- <pagesize id="row" max="250" />
- <total default="10" />
- </paging>
- <inputs>
- <key id="apikey" type="xs:string" private="true" paramType="query"/>
- <key id="ll" type="xs:string" paramType="query" />
- <key id="what" type="xs:string" paramType="query" />
- <key id="where" as="near" type="xs:string" paramType="query" />
- <key id="row" type="xs:string" paramType="query" />
- <key id="offset" type="xs:string" paramType="query" />
- <key id="type" type="xs:string" paramType="query" />
-
- <key id="d" as="distance" type="xs:string" paramType="query" />
- <key id="s" as="sortby" type="xs:string" paramType="query" />
- <key id="cat" type="xs:string" paramType="query" />
- <key id="subcat" type="xs:string" paramType="query" />
- <key id="compress" type="xs:string" paramType="query" />
- <key id="partner" type="xs:string" const="true" private="true" paramType="query" default="yql"/>
- </inputs>
- </select>
- </bindings>
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Urbanesia</author>
+ <description>Urbanesia Search API</description>
+ <documentationURL>http://api.urbanesia.com/search?output_type=array</documentationURL>
+ <sampleQuery>select * from {table} WHERE apikey = '45c19606fab8' AND what='resto'</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="data.result" produces="XML">
+ <urls>
+ <url>http://api.urbanesia.com/search?output_type=xml</url>
+ </urls>
+ <paging model="offset">
+ <start id="page" default="0" />
+ <pagesize id="row" max="250" />
+ <total default="10" />
+ </paging>
+ <inputs>
+ <key id="apikey" type="xs:string" private="true" paramType="query"/>
+ <key id="ll" type="xs:string" paramType="query" />
+ <key id="what" type="xs:string" paramType="query" />
+ <key id="where" as="near" type="xs:string" paramType="query" />
+ <key id="row" type="xs:string" paramType="query" />
+ <key id="offset" type="xs:string" paramType="query" />
+ <key id="type" type="xs:string" paramType="query" />
+
+ <key id="d" as="distance" type="xs:string" paramType="query" />
+ <key id="s" as="sortby" type="xs:string" paramType="query" />
+ <key id="cat" type="xs:string" paramType="query" />
+ <key id="subcat" type="xs:string" paramType="query" />
+ <key id="compress" type="xs:string" paramType="query" />
+ <key id="partner" type="xs:string" const="true" private="true" paramType="query" default="yql"/>
+ </inputs>
+ </select>
+ </bindings>
</table>
View
88 yahoo/finance/yahoo.finance.historicaldata.xml
@@ -0,0 +1,88 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Luigi Conti</author>
+ <description>Yahoo Finance Stock historical prices</description>
+ <sampleQuery>
+ select * from ydata where symbol = "YHOO" and startDate = "2009-09-11" and endDate = "2010-03-10"
+ </sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="quotes.quote" produces="XML">
+ <urls><url>http://ichart.finance.yahoo.com/table.csv</url></urls>
+ <inputs>
+ <key id='s' as='symbol' type='xs:string' paramType='query' required='true'/>
+ <key id="startDate" type='xs:string' paramType='variable' required='true' />
+ <key id="endDate" type='xs:string' paramType='variable' required='true' />
+ <key id='a' as="startMonth" type='xs:string' paramType='query' required='false' default='1' />
+ <key id='b' as="startDay" type='xs:string' paramType='query' required='false' default='1' />
+ <key id='c' as="startYear" type='xs:string' paramType='query' required='false' default='2010' />
+ <key id='d' as="endMonth" type='xs:string' paramType='query' required='false' default='1' />
+ <key id='e' as="endDay" type='xs:string' paramType='query' required='false' default='30' />
+ <key id='f' as="endYear" type='xs:string' paramType='query' required='false' default='2010' />
+ <key id='g' type='xs:string' paramType='query' required='false' const='true' default='d' />
+ </inputs>
+ <execute>
+ <![CDATA[
+ /*
+ Parameter Value
+ s Stock Ticker (for example, MSFT)
+ a Start Month (0-based; 0=January, 11=December)
+ b Start Day
+ c Start Year
+ d End Month (0-based; 0=January, 11=December)
+ e End Day
+ f End Year
+ g Always use the letter d
+ */
+
+ var encodedUrl = request.url;
+ encodedUrl = encodedUrl.replace('a=1','a=' + getMonth(startDate));
+ encodedUrl = encodedUrl.replace('b=1','b=' + getDay(startDate));
+ encodedUrl = encodedUrl.replace('c=2010','c=' + getYear(startDate));
+ encodedUrl = encodedUrl.replace('d=1','d=' + getMonth(endDate));
+ encodedUrl = encodedUrl.replace('e=30','e=' + getDay(endDate));
+ encodedUrl = encodedUrl.replace('f=2010','f=' + getYear(endDate));
+
+ var results = y.query("select * from csv(0,1) where url=@url",{url:encodedUrl});
+ var colNames='';
+ var rows=results.results.row;
+ for each (var row in rows) {
+ for each (var item in row.*) {
+ var txt = item.text().toString();
+ colNames=colNames + ',' + txt.replace(' ', '_');
+ }
+ }
+ colNames = colNames.substring(1);
+ results = y.query("select * from csv(2,0) where url=@url and columns=@columnsNames",{url:encodedUrl,columnsNames:colNames});
+ var quotes = <quotes/>;
+ rows=results.results.row;
+ for each (var row in rows) {
+ quotes.quote += <quote date={row.Date.text().toString()}>{row.*}</quote>;
+ }
+ response.object = quotes;
+
+ function getDay(date) {
+ var n = date.substr(8,2);
+ if (n.substr(0, 1)=="0")
+ {
+ n = n.substr(1, 1);
+ }
+ return '' + (parseInt(n));
+ }
+ function getMonth(date) {
+ var n = date.substr(5,2);
+ if (n.substr(0, 1)=="0")
+ {
+ n = n.substr(1, 1);
+ }
+ return '' + (parseInt(n)-1);
+ }
+ function getYear(date) {
+ return date.substr(0,4)
+ }
+
+ ]]></execute>
+ </select>
+ </bindings>
+</table>
Please sign in to comment.
Something went wrong with that request. Please try again.