so in the console i get
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://api.twitch.tv/kraken/chat/emoticons. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).
when trying to request from https://api.twitch.tv/kraken/chat/emoticon , but only from that one, all the others i use ( /streams , /channels , /users ) i never get that error , in all the cases i make the request the same way
documentation does not mention that /chat/emoticons needs something that the others don’t , i am missing something ?
the code :
also in the response headers of the request i see " access-control-allow-origin * " , even when i found it super confusing from what i was reading that should mean that the site allows requests from any origin? , so why i see the error? ugh, super confusing
Strange, I’m getting this response if I request v5 but without the version header it returns expected data:
"message": "The API version you are looking for is in another castle. See https://dev.twitch.tv/docs"
In general that endpoint has always been trouble due to it’s size. I would recommend sticking to
https://api.twitch.tv/kraken/chat/emoticon_images as much as possible.
yes, this is weird
i looked at that emoticon_images but seems to bring all the emotes for all channels
searching i found other not documented https://api.twitch.tv/api/channels/<channel_name>/product that has the sub emotes for a single channel in one shorter response, simpler for me to deal with that
so gonna give a try to that first , but leaving it here so if anyone search for something similar can find it too
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.