The documentation of "Person Resource" at <http://nationbuilder.com/people_api> says
could_vote_status
- boolean indicating if this person could vote in an election or not, derived from their election-related IDs
However, the examples, and, actual, server responses contain values null, -1, 1.
This seems to be a nullable integer. Trying to parse it as a boolean can cause your application to fail.
What are the possible values, and their meanings for this field?
Thanks,
Pav
Share this post
Showing 2 reactions
Sign in with
The API documentation says
twitter_location – an address resource representing this person’s address based on Twitter’s location data
However, the examples, and server responses contain a (nullable) string in that field. It seems to often be a two-letter state code, or a city and a state code separated by a comma. It cannot be parsed as an address resource, however.
Thank you for bringing this to our attention, we’ll look into this more from our end.
In the meantime for the values that are currently returned:
-1 = false (no)
1 = true (yes)
null = unknown