API REFERENCE GUIDE

cloud content content_log

api description

purpose

content_log returns the list of archived versions of a text content edited in AuverCloud Studio.

PLEASE NOTE: content_log requires the following CSS template https://www.auvercloud.com/run/css/arc.3.css to publish the HTML contents. Do not hesitate to overwrite it or to design your own customized version.

http method: GET

call cost: 1 point

See the pricing section for more details.

mandatory parameter(s)

parameter values / comments
api"content_log"
key E.g. "c54e7837e0cd0ced286cb5995327d1ab54e35987179b2". It is an application key generated by AuverCloud Studio.
cnameText content name as defined in AuverCloud Studio e.g. "hello_world"

optional parameters(s)

parameter values / comments
outputThis parameter defines the response output format. The value should be one the three following values:
  • "html" (default value), returns raw HTML content which is convenient when called from PHP client
  • "mix" returns a HTML string in the standard JSON response data
  • "json" returns an array in the JSON response data such as in the example below.

    In that case,the data is an array of content descriptors for both the current version (the first one) and the archived versions (the others). Each content descriptor is an array composed of 5 values:

    1. the content name
    2. the title of the version
    3. the author of the version
    4. the date of the archived version or an empty string for the current version
    5. the name of the archived version or an empty string for the current version
{
  code: "200",
  msg: "OK",
  data: [
  	["hello_world","Hello world title","io@auvercloud.fr","",""],
  	["hello_world","Hello world - Second title","io@auvercloud.fr","2014-04-23 08:09:58","Second archive"],
  	["hello_world","Hello world - Initial title","io@auvercloud.fr","2014-04-23 08:09:13","First archive"]]
}

call sample

This example is the code used in the test case below. It assumes that jQuery and the JavaScript AuverCloud runtime client are loaded in order to use the arc.api() method. See the API client section for more details.


								

As this API method is GET, the following URL produces the same response:

errors

code message comments
640 Unknown content. This occurs when the combination of content name, type and date does not exist in the account related to the application key.

See also the Common errors section.

test bed

Call

To test the API with your own keys, please see the section Application keys in AuverCloud Studio.

api
content_log
key
cname
output
mix
 send
request
 clear
response
Response
code
msg
data

discussion