73
edits
m (→postData) |
|||
Line 190: | Line 190: | ||
=== Using the JSON parser === | === Using the JSON parser === | ||
<pre> | |||
CmdUtils.makeSearchCommand({ | |||
name: "Google", | |||
url: "http://www.google.com/search?q={QUERY}", | |||
parser: { | |||
type: "json", | |||
url: "http://ajax.googleapis.com/ajax/services/search/web?v=1.0&q={QUERY}", | |||
container: "responseData.results", | |||
title: "titleNoFormatting", | |||
body: "content", | |||
href: "url", | |||
html: ["body"], | |||
}, | |||
}); | |||
</pre> | |||
=== Using functions in the parser === | === Using functions in the parser === |
edits