Click here to register.
login with Facebook
cast_vote requires body_id, not building_id?

PT Support

Flat
cast_vote requires body_id, not building_id?
User: The Tower
Date: 7/6/2014 5:57 pm
Views: 1413
Rating: 0

Was this on purpose, or an oversight? :)

Not sure if this propagates to other areas of the code at the moment (UI, perhaps?) because the UI seems to work, it's just a bit more painful for the API-using code since the default for most API calls will pass in the building ID automagically.

Re: cast_vote requires body_id, not building_id?
User: icydee
Date: 7/7/2014 3:19 pm
Views: 241
Rating: 0

This has been like that since over three years ago, I'm not going to change it now! :)

Re: cast_vote requires body_id, not building_id?
User: The Tower
Date: 7/7/2014 5:05 pm
Views: 485
Rating: 0

No it hasn't.  :P

It's always been building_id.

Anyway, that may need to be called out for anyone writing voting code, it makes the caller a bit more convoluted than normal.

PreviousNext