Block methods

blocks/show
Returns a details of specified block.
Block types
Returns a details of specified block.
| URL: |
http://www.your-domain.com/your-admin-folder/cms-license/api/blocks/show.format Example: http://www.designroyale.com/royalecms/cms-warnermusic/api/blocks/show.xml?id=1 |
| Data formats: | xml, json |
| HTTP Method(s): | GET |
| Parameters: | id (Required) - The ID of the block to fetch information for. |
| Example Response: |
<block>
<id>29</id>
<type>date</type>
<value>01/09/2009</value>
</block>
|
Block types
| date, textinput, textarea, select, stepper: |
<block>
<id>29</id>
<type>date</type>
<value>01/09/2009</value>
</block>
|
| media library: |
<block>
<id>59</id>
<type>library</type>
<files>
<file>
<id>12</id>
<filename>16942304654ac3f5a142a38</filename>
<name>image.jpg</name>
<ext>.jpg</ext>
<uri>http://www.designroyale.com/royalecms/cms-warnermusic/_images/16942304654.jpg</uri>
<width>400</width> <!-- available only for image file type -->
<height>533</height> <!-- available only for image file type -->
<type>image</type> <!-- image, video, file -->
<sizes> <!-- available only for image file type -->
<size>
<id>1</id>
<uri>http://www.designroyale.com/royalecms/cms-warnermusic/_images/16942304654_1.jpg</uri>
<width>100</width>
<height>50</height>
</size>
...
</sizes>
</file>
...
</files>
</block>
|
| link, template: |
<block>
<id>60</id>
<type>link</type>
<elements>
<element>
<id>2</id>
<template_id>1</template_id>
</element>
...
</elements>
</block>
|

