collections_count: true - wrong type?

20 views
Skip to first unread message

olek...@mobilexlabs.com

unread,
Mar 3, 2016, 11:11:32 AM3/3/16
to 8tracks public API
Hi 8tracks team,

1. When requesting users I often see a field "collections_count : true" rather than a numeric value. I am assuming that it should be integer or unsigned integer, but since there is no documentation on that I wanted to double check.
Here is an example user:
http://8tracks.com/users/hburke.json?api_key=[API_KEY]&api_version=3&include=profile_counts

2. I am also assuming that "collections_count : true" means that it is at least not 0 (maybe 1 or greater). If that holds true following request should return non-empty collection list, however it is empty for me.
http://8tracks.com/users/hburke/collections.json?api_key=[API_KEY]&api_version=3&include=profile_counts
If this is related to empty collections being still counted issue, do you have any advice on how I should handle this case in mobile application - collections_count is not 0, I show a "Collections" tab, but there are no items in it. For other media modules (SoundCloud etc.) we show tab only if item_count in it is greater than 0.

Thanks,
Oleksandr

Reply all
Reply to author
Forward
0 new messages