API property types

22 views
Skip to first unread message

Bas Bosman

unread,
Apr 24, 2014, 2:45:50 PM4/24/14
to wallabee-...@googlegroups.com
Hi,

I'm trying to implement an API wrapper in C#. So far it's looking good, but I do have a few small questions.

If I look at the Place API call (/places/7#) for instance, it returns id, place_category_id, and radius as strings, while it returns people_count and item_count as integers, while they all appear to be integers.

Is there a specific reason for this? Do I have to leave them as strings? Could they contain non integer values? Or can I just assume they'll always be integers and convert them to that in my wrapper? And does this apply to all integer like fields in the API?.

Thanks for the help in advance!

Bas Bosman


Ben Dodson

unread,
Apr 24, 2014, 8:59:53 PM4/24/14
to wallabee-...@googlegroups.com
Anything ending in _id or _count along with radius can be treated as an integer.

Ben
> --
> You received this message because you are subscribed to the Google Groups "WallaBee Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to wallabee-develo...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages