Documentation Bug: smugmug.users.getType
luke_church
Registered Users Posts: 507 Major grins
Issue: Documentation implies 'string return type', but the API returns a struct.
This is essentially the same bug as: http://www.dgrin.com/showthread.php?t=18377
but targetting users.getType, rather than accounts.getType
Tested against XML-RPC 1.1.1
Documentation (http://www.smugmug.com/hack/method-smugmug.users.getType)
Result:
[php]
<methodCall>
<methodName>smugmug.users.getType</methodName>
<params>
<param>
<value>
<string>...</string>
</value>
</param>
</params>
</methodCall>
Header
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>AccountType</name>
<value>
<string>Standard</string>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodResponse>
[/php]
(I have a network connection again : )
Cheers,
Luke
This is essentially the same bug as: http://www.dgrin.com/showthread.php?t=18377
but targetting users.getType, rather than accounts.getType
Tested against XML-RPC 1.1.1
Documentation (http://www.smugmug.com/hack/method-smugmug.users.getType)
Result:
- String "AccountType"
- "Pro": Professional accounts
- "Power": Power User accounts
- "Standard": Standard accounts
[php]
<methodCall>
<methodName>smugmug.users.getType</methodName>
<params>
<param>
<value>
<string>...</string>
</value>
</param>
</params>
</methodCall>
Header
<methodResponse>
<params>
<param>
<value>
<struct>
<member>
<name>AccountType</name>
<value>
<string>Standard</string>
</value>
</member>
</struct>
</value>
</param>
</params>
</methodResponse>
[/php]
(I have a network connection again : )
Cheers,
Luke
0