User Tools

Site Tools


en:public:developer:template_system:tags:api:get_wwwfile_logs

This is an old revision of the document!


<#get_wwwfile_logs>

Use this function to retrieve the logs of a template file

RESTFUL API

The ArKadia API currently supports a RESTful interface, that essentially means you can send an HTTP GET or POST to call exposed methods, and you'll get back an XML document in return.

When you call this function, you'll get a response in XML that looks like this:

<rsp stat="ok" version="1.0">
  [Data in XML format - see individual method docs]
</rsp>

If there's an error, you'll get a response with an error message about the problem.

<rsp stat="fail">
  <error msg="Error Message" />
<rsp>

HTTP Get/Post Parameters

Name Mandatory Default Description
Property.ID No ID of the property on with the lead will be linked
Lead.type Yes Type of lead (2=Web or 4=Telephone)

Error Codes

Code Description
111 One mandatory parameter is missing
119 Wrong parameter values

Example

<#get_wwwfile_logs filename="/templates/maintemplates/maintemplate.html" output_format="JSON">

will output

{"stat":"ok",
 "logentry":[{"revision":"8993",
              "author":"www.arkadia.com",
              "date":""}
en/public/developer/template_system/tags/api/get_wwwfile_logs.1362727603.txt.gz · Last modified: 2013/03/08 11:26 by admin