UserID Standardised json Type?

ID seem to be json numbers or strings depending on the endpoints. Is there a plant to move them all to int?

Thanks.

No, they are all supposed to be strings, and the other end points should get switched to strings.

Similar in fashion to Twitter snowflake ID’s Ref: https://dev.twitter.com/overview/api/twitter-ids-json-and-snowflake

So type cast them to strings and expect strings and convert to strings

Thanks Barry! Makes sense I was just wondering since the stream endpoint was updated recently if they were going from string to int instead of it just being an error.

Probably just Twitch Twitchin’ and different teams making a mess of things as always.

Basically expect and typecast to string will save headaches (I used to BIGINT it on MySQL but I just varchar it these days)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.