• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug APIs, Hacks & Tricks REST API questions about boolean fields

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Apr-08-2005, 03:48 AM
#1
Kyhi is offline Kyhi OP
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.
Old Apr-08-2005, 06:30 AM
#2
Nikolai is offline Nikolai
Darth SLR
Nikolai's Avatar
XML posting
Quote:
Originally Posted by Kyhi
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?
</FILENAMES></FRIENDEDIT></FAMILYEDIT></LASTUPDATED></SORTDIRECTION></SORTMETHOD></SHARE></EXIF></ORIGINALS></EXTERNAL></COMMENTS></FILENAMES>
I have the same problem. VBulletin does not like XML tags at all.
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

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump