Acre (philg)

Acre API Response Filter Acre API Response topics

Share This
table started by philg for the Acre Base
There is no user-contributed description yet.
+

x

x Argument or Variable x Description x Example
+

Do you know something that's missing from this view? Add it!

If you have a list you can use our wizard to match it with topics that may already be in Freebase.
Go to the import tool »
Query Returns a query object which can be run with acre.freebase.MqlRead() The following file would return an object with property query that is the query object: { 'id':null, 'type':'/people/person' }
Template A namespace of top-level templates is returned <acre:block def="blah()"> blah! </acre:block> <acre:block def="bleh()"> bleh! </acre:block>
Script Evaluates the script and returns anything defined in the script attached to an object For values val and show_val: var val = 1; function show_val() { acre.write(val); };
Text Returns the same response envelope as acre.urlfetch().  
  Returns a JavaScript object of the response. The response body is a JavaScript string, meaning it has already been decoded. All header names are changed to lower-case. { status: 200, headers: { "content-length": "14", "content-type": "text/plain; charset=UTF-8" }, content_type: "text/plain", body: "hocus.\npocus.\n" }
Response depends upon the type of file requested:    
header A JavaScript object of the HTTP headers  
status The response status 200
  JavaScript Object  
  JSON String  
  XML DOM object that implements the W3C ECMAScript binding  
query_obj A JavaScript object of the MQL query  
envelope_obj A JavaScript object of the MQL envelope  
  JavaScript Object  
  JavaScript Date Object  
  MQL ISO 8601 date string  
server_name The hostname of the request, i.e., "app.joeuser.user.dev.freebaseapps.com"  
request_body The body of the request (POST only).  
path_info The path of the current request minus the script name. The default is '/'.  
cookies The cookies of the request. Note: for security reasons, some Freebase cookies are stripped out.  
server_port The port of the request, i.e. 80  
script_namespace The Freebase ID of the Acre app  
freebase_service_url Base URL for freebase services. Useful for dynamically building URLs for either http://www.freebase.com or http://sandbox.freebase.com.  
script_id The Freebase ID of the acre file  
script_name The name of the file -- its key in the Acre app's namespace  
params A JSON object of the parsed query string of the request  
request_method The method of the request, either "GET" or "POST".  
server_protocol The protocol of the request, i.e.: "http"  
  dictionary object  
keys array of the names of the stored keys  
id Freebase ID /user/foo
username short username foo
name full name Foo Bar
body content of the blob  
result successful response  
code    
status whether the query succeeded  
key_obj A JSON object with the values of the key  
script_namespace The Freebase ID of the Acre app  
app_guid The Freebase guid of the Acre app  
script_name The name of the file -- its key in the Acre app's namespace  
script_id The Freebase ID of the acre file  
body_params A JSON object of the parsed post body of the request  
Edit Collection Schema
All topics in this collection are typed as Acre API Response
Use Data from this Collection
Choose a format:

Images and articles are not included in export files, which are limited to 1000 items. Complete data dumps are also available here.

Flag this Collection
Why do you want to flag this collection?