Labs/Ubiquity/Writing A Search Command: Difference between revisions

m
Line 122: Line 122:


=== postData ===
=== postData ===
Supplying postData will make Ubiquity use POST instead of GET when retrieving the results. It can be either a string ie: "q={QUERY}&hl=en" or as an object ie:
Supplying postData will make Ubiquity use POST instead of GET when retrieving the results. It can be either a string or an object. i.e.:
<code>{"q": "{QUERY}", "hl": "en"}</code>
* <code>"q={QUERY}&amp;hl=en"</code>
* <code>{q: "{QUERY}", hl: "en"}</code>


=== parser ===
=== parser ===
73

edits