When the chat/emoticon_images endpoint is called without the optional
emotesets parameter, the returned JSON blob does not match the documentation. Instead of returning this:
The returned JSON blob structure is this:
This isn’t so much of a discrepancy as it is just completely missing from the documentation.
This isn’t a discrepancy. All example responses match their example requests. For this particular endpoint, the request specifies an emoteset parameter of 19151, which is why the response only includes that emoteset.
emotesets is specified, yes, the returned object matches what is in the documentation. I was trying to state that when
emotesets isn’t specified is when the returned object doesn’t match.
You’re correct. In the documentation, we don’t demonstrate all responses for all configurations of the endpoints. It would make the documentation too unwieldy and, ultimately, useless when the majority of the page is requests and responses. We choose a particular scenario that seems the most illustrative of the endpoint’s functionality and provide that. The rest is left up to the curiosity of the developer.
@DallasNChains That makes sense when the structure of the response stays the same, but here the presence of emotesets param changes it where it doesnt fit in the existing model at all. Would be great to be able to build the data models without debugging actual requests.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.