2 Documentation Bugs: smugmug.albums.getStats
luke_church
Registered Users Posts: 507 Major grins
Issue 1: Documentation http://www.smugmug.com/hack/method-smugmug.albums.getStats states the following datatype for return:
struct
(XML at the bottom of the page)
Note this issue may (hopefully) also affect images.getStats as well.
Issue 2: The BETA (Heavy) parameter is discussed on the documentation page, but the parameter isn't listed in the Arguments list:
String SessionID
int AlbumID
int Month
int Year
Assumed to be a 'Boolean Heavy optional'
---
XML return for albums.getStats: (XML-RPC 1.1.0)
[php]
<?xml version="1.0" encoding="iso-8859-1"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>Bytes</name>
<value>
<int>487233</int>
</value>
</member>
<member>
<name>Tiny</name>
<value>
<int>124</int>
</value>
</member>
<member>
<name>Thumb</name>
<value>
<int>5</int>
</value>
</member>
<member>
<name>Small</name>
<value>
<int>1</int>
</value>
</member>
<member>
<name>Medium</name>
<value>
<int>9</int>
</value>
</member>
<member>
<name>Large</name>
<value>
<int>2</int>
</value>
</member>
<member>
<name>Original</name>
<value>
<double>3.000000</double>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodResponse>
[/php]
struct
- int Bytes
- int Tiny
- int Thumb
- int Small
- int Medium
- int Large
- float Original
(XML at the bottom of the page)
Note this issue may (hopefully) also affect images.getStats as well.
Issue 2: The BETA (Heavy) parameter is discussed on the documentation page, but the parameter isn't listed in the Arguments list:
String SessionID
int AlbumID
int Month
int Year
Assumed to be a 'Boolean Heavy optional'
---
XML return for albums.getStats: (XML-RPC 1.1.0)
[php]
<?xml version="1.0" encoding="iso-8859-1"?>
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>Bytes</name>
<value>
<int>487233</int>
</value>
</member>
<member>
<name>Tiny</name>
<value>
<int>124</int>
</value>
</member>
<member>
<name>Thumb</name>
<value>
<int>5</int>
</value>
</member>
<member>
<name>Small</name>
<value>
<int>1</int>
</value>
</member>
<member>
<name>Medium</name>
<value>
<int>9</int>
</value>
</member>
<member>
<name>Large</name>
<value>
<int>2</int>
</value>
</member>
<member>
<name>Original</name>
<value>
<double>3.000000</double>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodResponse>
[/php]
0