Except as otherwise noted,
the content of this page is licensed under the Creative Commons
Attribution 2.5 License.
Provides remote content retrieval functions.
<static>
String
encodeValues(fields)
<static>
String
getProxyUrl(url)
<static>
makeRequest(url, callback, opt_params)
<static> String encodeValues(fields)
Object fields - The post fields you wish to encode
String The processed post data; this will include a trailing
ampersand (&)
<static> String getProxyUrl(url)
String url - The URL to get the proxy URL for
String The proxied version of the URL
<static> makeRequest(url, callback, opt_params)
var params = {};
params[gadgets.io.RequestParameters.CONTENT_TYPE] = gadgets.io.ContentType.TEXT;
gadgets.io.makeRequest(url, callback, params);
String url - The URL where the content is located
Function callback - The function to call with the data from the
URL once it is fetched
Map.<gadgets.io.RequestParameters, Object> opt_params - Additional
parameters
to pass to the request