mkdir myapp
cd myapp
curl https://raw.github.com/ql-io/ql.io/master/modules/template/init.sh | bash
bin/start.sh
-- A table to find products
create
table
eBay.FindProducts
on
select
get
from
"http://open.api.ebay.com/shopping?callname=FindProducts&appid={^apikey}&responseencoding=JSON&version=725&QueryKeywords={^QueryKeywords}&MaxEntries={max}&ProductSort=Popularity&AvailableItemsOnly=true&siteid={siteid}"
using defaults
max
=
"5"
, apikey =
"{config.eBay.apikey}"
, sideid = 0
resultset
'Product'
;
-- Twitter [search API](https://dev.twitter.com/docs/api/1/get/search)create table twitter.searchon select get from 'http://search.twitter.com/search.json?q={q}&rpp={rpp}&include_entities=true&result_type=mixed&page={page}'with aliases limit = 'rpp'using defaults format = 'json'using patch 'twitter.js'resultset 'results'
1 2 3 | { "message" : "ok" } |