|
|
Thread Tools | Display Modes |
|
#1
|
|
|
Big grins
|
REST API questions about boolean fields
In the response returned from smugmug I sometimes get an empty string for boolean fields. I've included a sample below that shows that Public, Password, Filename, Comments, External, Share and SortDirection did not return a 0 or 1. Does this always mean that the value is 0 (false)? I had a hard time posting the actual XML, it would always lose the less than and greater than signs. How do I post XML?
method: smugmug.albums.getInfo<filenames><comments><extern al><originals><exif><share><sortmethod><sortdirect ion><lastupdated><familyedit><friendedit><filename s> Public= Password= Printable=1 Filenames= Comments= External= Originals=1 EXIF=1 Share= SortMethod=Position SortDirection= LastUpdated=2005-03-30 18:08:05 FamilyEdit=0 FriendEdit=0 Thanks Bill</filenames></friendedit></familyedit></lastupdated></sortdirection></sortmethod></share></exif></originals></external></comments></filenames> Last edited by Kyhi; Apr-08-2005 at 03:59 AM. |
|
|
|
|
#2
|
||
|
Darth SLR
|
XML posting
Quote:
The only way I managed to find working is to surround XML text with php quotes. Adn even then there is a catch: you can only post it once. If you preview or edit it, the formatting's gone. It sucks, I know, but so far I don't know of better solution.. HTH Cheers!
__________________
"May the f/stop be with you!" Star*Explorer: on Dgrin, home; Master Class: open; Class is in session, My Facebook, @DarthSLR, #NiksTips member: NAPP, PPA, partner: Adobe Comprehending life, universe and everything - one pixel at a time |
|
|
|
||
| Tell The World! | |
| Thread Tools | |
| Display Modes | |
|
|