Share This
Add More Topics
Save this view to a base, or just for yourself.
72 Acre API Argument topics matching:
Filter this Collection
Sort by
Date Added
↓
|
|
|
|
|
|
|---|---|---|---|---|
| x Argument | x Default Value | x Description | x Example | |
| id | The id/path of the file to require, either fully-qualified or relative to the app. | |||
| headers | An object of the request HTTP headers | |||
| method | The HTTP method to use, GET or POST | |||
| content | The content of the request (POST only) | |||
| url | The url to request | |||
| server_protocol | The protocol of the request, i.e.: "http" | |||
| server_name | The hostname of the request, i.e., "app.joeuser.user.dev.freebaseapps.com" | |||
| request_method | The method of the request, either "GET" or "POST". | |||
| path_info | / | The path of the current request minus the script name. The default is '/'. | ||
| server_port | The port of the request, i.e. 80 | |||
| 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_namespace | The Freebase ID of the Acre app | |||
| script_name | The name of the file -- its key in the Acre app's namespace | |||
| cookies | The cookies of the request. Note: for security reasons, some Freebase cookies are stripped out. | |||
| params | A JSON object of the parsed query string of the request | |||
| request_body | The body of the request (POST only). | |||
| str | Default logging level is info | The string to log | ||
| status | ||||
| headers | ||||
| str | The string to append. | acre.write("hello world"); | ||
| str | A JSON string to be parsed | |||
| obj | A JavaScript Object to stringify | |||
| str | A string to parse | |||
| query object | The query to extend | var parmeterized_person_query = acre.freebase.extend_query(person_query,{"id": "/en/bob_dylan"}) | ||
| changes_obj (optional) | A dictionary of path : value combinations to apply to the query. The path language is the same as for the sort command in MQL. | |||
| query_obj | The query to convert | var name = acre.freebase.MqlRead({"id":"/en/bob_dylan","name":null}).result.name | ||
| envelope_obj (optional) | ||||
| mode | the trans service to call, "raw" or "blurb" | var raw_text = acre.freebase.TransGet("/type/content/id", "raw").result.body | ||
| freebase_id | the freebase_id | |||
| maxlength | The maximum length, in characters, of text to return. Applies to "blurb" only. | |||
| freebase_id | the freebase ID of the image | |||
| maxheight | the maximum height of the image, in pixels | <img src="${acre.freebase.imgurl(image.id,100,128)}" /> | ||
| maxwidth | The maximum width of the image, in pixels | |||
| str | The string of the date value in ISO 8601 format | |||
| Date | A JavaScript Date object | |||
| dict_obj | ||||
| base_url | ||||
| str | The string to bless | |||
| str | string to quote | |||
| str | string to escape | |||
| dict_obj | dictionary object to encode | |||
| replacer | null | A function, or list of functions to determine how objects are stringified | ||
| space | 0 | The amount of spaces that should be used for indentation | ||
| str | www-form-urlencoded strubg | |||
| body | The contents to upload | |||
| agrs | Additional arguments to the Freebase Upload API | |||
| content_type | The mime-type of the contents | |||
| query | a mqlwrite query object | |||
| envelope | a dictionary of envelope options | |||
| scope | an object into which the script will be evaluated ? | |||
| scope | {} | The object into which the script will be evaluated | ||
| markup | Markup to stringify | |||
| query | Javascript object of the MQL query | |||
| options | Javascript object of the MQL envelope | |||