1
0
-1

I'm using the HTTP API on our new website and so far it's working out pretty well, but I've run into a snag. I'm able to successfully access a number of fields with the animals object and the publicSearch action (animalName, locationName, animalPrimaryBreed, animalSex, animalColor, animalColorDetails, etc.). The only field I'm running into a problem with is animalAltered. It's just simply not returning anything, even when it is set.

See this page: http://hmcreative.net/hmjc/adoptable-small/

"Oreo" does not have the field set, and it is expected for nothing to display next to "altered:". However "Pez" has the field set to "Yes" which I would expect to display next to "altered:" but you can see it does not.

I've quadruple checked my code, copied and pasted the field name straight from the documentation so I can be sure it wasn't a typo, and I'm not calling that field any differently than any other field that is displaying successfully. That line of code is simply: echo "<br> altered: " . $animal["animalAltered"];

If the full code would be helpful I'd be happy to post it.

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Sam, I believe that you only need to make the spay/neuter status public under Animals > Settings > Privacy Settings.  About Animal Settings

      1. Sam Maurice

        Thank you so much! That worked like a charm!

      CommentAdd your comment...