User Tools

Site Tools


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

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:public:developer:template_system:tags:api:get_wwwfile_logs [2013/03/08 15:32]
admin [Parameters]
en:public:developer:template_system:tags:api:get_wwwfile_logs [2013/03/09 18:21] (current)
admin [Parameters]
Line 5: Line 5:
 ==== Parameters ==== ==== Parameters ====
  
-^ Name                                                        ^ Mandatory ^ Default             ^ Description       ^        +Parameters are taken from tag (default) or from HTTP GET/Post 
-| <html><span style="color:#008000">output_format</span></html> | No        | REST              | **JSON** to retrieve response in [[en:public:developer:template_system:tags:api:JSON_Response_Format|JSON Format]] or **REST** to retrieve in [[en:public:developer:template_system:tags:api:REST_Response_Format|REST Format]] | + 
-| <html><span style="color:#008000">Lead.type</span></html>   Yes       |                     Type of lead (2=Web or 4=Telephone) |+^ Name                                                          ^ Mandatory ^ Default ^ Description       ^        
 +| <html><span style="color:#008000">filename</span></html>      | Yes       |       | the filename (related to the root). Ex: /templates/maintemplates/maintemplate.html | 
 +| <html><span style="color:#008000">output_format</span></html> | No        | REST  | **JSON** to retrieve response in [[en:public:developer:template_system:tags:api:JSON_Response_Format|JSON Format]] or **REST** to retrieve in [[en:public:developer:template_system:tags:api:REST_Response_Format|REST Format]] | 
 +| <html><span style="color:#008000">jsoncallback</span></html>  | No        |       | Callback function to use in [[en:public:developer:template_system:tags:api:JSON_Response_Format|JSON Response Format]] |
  
 ==== Error Codes ==== ==== Error Codes ====
  
 ^ Code                                                ^ Description ^        ^ Code                                                ^ Description ^       
-| <html><span style="color:#008000">111</span></html> | One mandatory parameter is missing +| <html><span style="color:#008000">1</span></html>   Insufficient rights. You must be logged as an admin to see logs 
-| <html><span style="color:#008000">119</span></html> | Wrong parameter values |+| <html><span style="color:#008000">114</span></html> | File not found |
  
  
Line 20: Line 23:
 <code html> <code html>
  
-<#get_wwwfile_logs filename="/templates/maintemplates/maintemplate.html" output_format="JSON">+<#get_wwwfile_logs filename="/templates/maintemplates/maintemplate.html">
  
 </code> </code>
  
-will output+will output in **REST** 
 + 
 +<code xml> 
 + 
 + <rsp stat="ok"> 
 +   <log> 
 +     <revision>7689</revision> 
 +     <author>nik</author> 
 +     <date>2/22/2013 1:10:45 PM</date> 
 +   </log> 
 +   <log> 
 +     <revision>7658</revision> 
 +     <author>www.arkadia.com</author> 
 +     <date>2/21/2013 9:07:25 AM</date> 
 +   </log> 
 + </rsp> 
 + 
 +</code>
  
-<code JSON>+And in **JSON**
  
-{&quot;stat&quot;:"ok", +&lt;code javascript&gt;
- "logentry":[{"revision":"8993", +
-              "author":"www.arkadia.com", +
-              "date":""}+
  
 +  {
 +   "stat":"ok",
 +   "logs":[
 +           {
 +            "revision":"7689",
 +            "author":"nik",
 +            "date":"2/22/2013 1:10:45 PM"
 +           },
 +           {
 +            "revision":"7658",
 +            "author":"www.arkadia.com",
 +            "date":"2/21/2013 9:07:25 AM"
 +           }
 +          ]
 +  }
  
 </code> </code>
en/public/developer/template_system/tags/api/get_wwwfile_logs.1362742350.txt.gz · Last modified: 2013/03/08 15:32 by admin