Permalink
Browse files

add green bookings for a 3rd party

  • Loading branch information...
1 parent 9e2c5bf commit ff6cc1f069f96986d923bdf91a1dcd0790887455 Sam Pullara committed Jun 11, 2009
Showing with 27 additions and 0 deletions.
  1. +1 −0 alltables.env
  2. +26 −0 greenbookings/greenbookings.search.xml
View
1 alltables.env
@@ -41,6 +41,7 @@ use 'http://www.datatables.org/github/github.user.repos.xml' as github.user.repo
use 'http://www.datatables.org/google/google.translate.xml' as google.translate;
use 'http://www.datatables.org/greader/greader.feed.xml' as greader.feed;
use 'http://www.datatables.org/greader/greader.user.folder.xml' as greader.user.folder;
+use 'http://www.datatables.org/greenbookings/greenbookings.search.xml' as greenbookings.search;
use 'http://www.datatables.org/guardian/guardian.content.item.xml' as guardian.content.item;
use 'http://www.datatables.org/guardian/guardian.content.search.xml' as guardian.content.search;
use 'http://www.datatables.org/guardian/guardian.content.tags.xml' as guardian.content.tags;
View
26 greenbookings/greenbookings.search.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
+ <meta>
+ <author>Yvo Schaap</author>
+ <description>Greenbookings.com Hotel Search</description>
+ <documentationURL>http://www.greenbookings.com/faq/</documentationURL>
+ <sampleQuery>select * from {table} where search='times square new york' and currencyCode= 'EUR'</sampleQuery>
+ </meta>
+ <bindings>
+ <select itemPath="results.item" produces="JSON">
+ <urls>
+ <url>http://www.greenbookings.com/api/hotelSearchFeed.php</url>
+ </urls>
+ <paging model="offset">
+ <start default="0" id="start"/>
+ <pagesize max="50" id="count"/>
+ <total default="20" />
+ </paging>
+ <inputs>
+ <key id="search" type="xs:string" paramType="query" required="true" />
+ <key id="currencyCode" type="xs:string" paramType="query" />
+ <key id="numberOfResults" type="xs:integer" paramType="query" />
+ </inputs>
+ </select>
+ </bindings>
+</table>

0 comments on commit ff6cc1f

Please sign in to comment.