Share This
Add More Topics
Save this view to a base, or just for yourself.
44 Acre API Method topics matching:
Filter this Collection|
|
|
||||
|---|---|---|---|---|---|
| x name | x image | x Category | x Description | x Syntax | x article |
| x acre.require | Files | Import another file as a library | acre.require(id) |
Description could not be displayed
|
|
| x acre.urlfetch | Files | Fetch data from an external URL | acre.urlfetch(url, method, headers, content) |
Description could not be displayed
|
|
| x acre.environ | Environment | Object that contains properties of the request | acre.environ.* |
Description could not be displayed
|
|
| x acre.log | Logging | Write to the server log | acre.log(str) | ||
| x acre.start_response | HTTP Response | Begin the HTTP response | acre.start_response(status, headers) | ||
| x acre.write | HTTP Response | Add output to the http response | acre.write(str) | ||
| x acre.exit | HTTP Response | Terminates the HTTP response | acre.exit() | ||
| x JSON.parse | Data Formats | Parse a JSON string into a JavaScript object | JSON.parse(str) | ||
| x JSON.stringify | Data Formats | Serialize a JavaScript object to a JSON string | JSON.stringify(obj, replacer, space) | ||
| x acre.xml.parse | Data Formats | Parse a string into an XML DOM | acre.xml.parse(str) | ||
| x acre.freebase.extend_query | MQL | Allows you to modify a query object by over-writing paths with new values | acre.freebase.extend_query(query_obj, changes_obj) | ||
| x acre.freebase.MqlRead | MQL | Call the Freebase MqlRead service. | acre.freebase.MqlRead(query_obj, envelope_obj) | ||
| x acre.freebase.TransGet | Content Store (CDB) | Wrapper for the Freebase /trans/raw and /trans/blurb APIs. Returns a javascript object from the JSON result. | acre.freebase.TransGet(freebase_id, mode, maxlength) | ||
| x acre.freebase.imgurl | Content Store (CDB) | A wrapper for the Freebase image_thumb service. Usually used in-line in templates. | acre.freebase.imgurl(freebase_id, maxwidth, maxheight) | ||
| x acre.freebase.date_from_iso | Dates | Freebase timestamps are stored as ISO 8601-compliant strings. This method parses those strings into a JavaScript Date object. | acre.freebase.date_from_iso(str) | ||
| x acre.freebase.date_to_iso | Dates | Converts Javascript Date object into a MQL-ready string (ISO 8601). | acre.freebase.date_to_iso(Date) | ||
| x acre.markup.bless | HTML/URI Encoding | Used to explicitly label a string as valid markup. Normally all text inserted into a template is automatically encoded, but this method circumvents that. As this is a potential entry point for script injection attacks, be sure that you trust the source of the string before blessing it. | acre.markup.bless(str) |
Description could not be displayed
|
|
| x acre.formquote | HTML/URI Encoding | Like JavaScript's native encodeURIComponent(), but quotes fewer characters | acre.formquote(str) | ||
| x acre.htmlencode | HTML/URI Encoding | Escapes <>&" characters with HTML entities. Escaping " is only necessary in attributes but we do it in all text. | acre.htmlencode(str) | ||
| x acre.formencode | HTML/URI Encoding | Generates a www-form-urlencoded string from a dictionary. Undefined values are skipped, but empty-string is included. | acre.formencode(dict_obj) | ||
| x acre.formdecode | HTML/URI Encoding | Parse a www-form-urlencoded string into a dict | acre.formdecode(str) | ||
| x acre.freebase.MqlWrite | Perform a write query via the Freebase mqlwrite API | acre.freebase.MqlWrite(query, envelope) | |||
| x acre.freebase.Upload | Upload a file to the content store | acre.freebase.Upload(content_type, body, args) | |||
| x acre.markup.stringify | HTML/URI Encoding | Output markup as a string | acre.markup.stringify(markup) | ||
| x acre.freebase.mqlread | MQL | This function queries Freebase with the given single MQL query (as a javascript object) and returns the parsed JSON response (as a javascript object). | acre.freebase.mqlread(query, options) | ||
| x acre.freebase.mqlwrite | MQL | Call the Freebase mqlread service. | acre.freebase.mqlwrite(query, options) | ||
| x acre.freebase.get_user_info | OAuth | Call the Freebase user_info service | acre.freebase.get_user_info() | ||
| x acre.freebase.search | Relevance | Call the Freebase search API. | acre.freebase.search(query, options) | ||
| x acre.freebase.get_blob | Content Store (CDB) | Call the Freebase trans services. | acre.freebase.get_blob(id, mode) | ||
| x acre.keystore.get | API Keystore | Get a key form the API keystore | api.keystore.get(name) | ||
| x acre.keystore.keys | API Keystore | Get all keys stored in the keystore for the current app | acre.keystore.keys() | ||
| x acre.oauth.get_authorization | OAuth | Make sure the user is provisioned to use oauth against the specified provider, including initiating the approval flow if they are not. | acre.oauth.get_authorization(provider_obj) | ||
| x acre.oauth.has_credentials | OAuth | Test whether user can use OAuth-protected APIs from the specified provider | acre.oauth.has_credentials(provider_obj) | ||
| x acre.oauth.remove_credentials | OAuth | Remove a user's OAuth credentials for using an OAuth-protected service. | acre.oauth.remove_credentials(provider_obj) | ||
| x acre.keystore.remove | API Keystore | Remove a key from an apps keystore | acre.keystore.remove(name) | ||
| x console.log | Logging | Log javascript values to the Preview console | console.log(var1, var2, ...) | ||
| x acre.freebase.upload | Content Store (CDB) | Call the Freebase upload service | acre.freebase.upload(text, mime-type, options) | ||
| x acre.response.set_header | HTTP Response | Set a header in the HTTP response. | acre.response.set_header(name, value); | ||
| x acre.response.status | HTTP Response | Set the HTTP status code of the response | acre.response.status = code | ||
| x acre.response.set_header_default | HTTP Response | Set an HTTP header only if it has not already been set. | acre.response.set_header_default(name, value) | ||
| x acre.response.set_cookie | HTTP Response | Send a Set-Cookie header to the client. | acre.response.set_cookie(name, value, options) | ||
| x acre.response.clear_cookie | HTTP Response | Sends a "negative cookie" to the browser (an expire date set in the past). | acre.response.clear_cookie(name) | ||
| x acre.html.parse | Data Formats | Parse a string into a DOM. | acre.html.parse(str) | ||
| x acre.context | Environment | Object that contains properties of the current context (exectuing script) | acre.context.* | ||