Let's discuss your "Twitch.tv App"

Hey Guy’s!

Check out mine.
Project Link - http://codepen.io/nawazish/full/ZpOkzw

Also see this link if your twitch app is not working. Twitch api now requires Client ID header.

1 Like

Live Demo:
https://asimolovegym.github.io/Twitchtv-JSON-API/

Project Code Detail:

I used two AJAX,
https://api.twitch.tv/kraken/channels/” for detailed information (even it’s offline).
https://api.twitch.tv/kraken/streams/” only for online/offline status.

This is a much harder project comparing to previous API project, as nawazishali mentioned above, twitch.tv API right now request Client ID, that’s why lots of previous post (and the one in project demo) doesn’t work anymore.

Any comments are welcome!

1 Like

Well, I don’t know what it means, but when I open the page and view console, I see “Uncaught SecurityError: Failed to set the ‘domain’ property on ‘Document’: Assignment is forbidden for sandboxed iframes.” Still looking…

Still beats the heck out of me. Googling the error yields this: https://github.com/FreeCodeCamp/freecodecamp/issues/1340 …which answers nothing. If it helps, I’m having no such problem, so you can scrutinize my code to see if you find any difference: http://codepen.io/AbdiViklas/pen/PzgRbj … but I don’t. It almost sounds like it happens to some users and not others. You might try getting a new Client ID from Twitch, or maybe starting over in a new pen.

Also, do you know about Postman? Makes life a lot easier working with these APIs.

1 Like

I understand what you are saying. I think the purpose is to prove that we can handle those pesky server errors, or at least understand what they mean.

Project Link - https://jenovs.github.io/fcc-twitchtv-react/

React/Redux version.

1 Like

Thank you to all the campers in the forum who helped me find the solutions!
Here’s the link to my updated Twitch.
Koni’s Twitch Update

Thanks, the link you posted described my problem pretty well. Seems to be a problem with linking to a twitch page from an iFrame from some computers or IPs. Strange that I had no issues until yesterday after receiving my client ID. Now all codepen based twitch apps, including yours, behave in the same way for me. Perhaps something I’ve done got me tagged as a security risk, like accessing their site repeatedly in atypical ways while debugging my app.

Postman looks pretty cool, I’ll be giving it a go soon.

My simplistic Twitch TV viewer - http://codepen.io/aks2161989/full/ozXkQO/

Feedback will be appreciated!

Finally finished my Twitch viewer.
Here is the link: https://codepen.io/phanther/full/XKLQQX/
Any kind of feedback appreciated.

Project Link - https://codepen.io/simak_yahor/full/amyVvg/

Any feedbacks are more than welcome!

It looks good. But I think one of the user stories requires us to provide the missing streamers as No Account. There should only be two or three from the list provided. You will probably see them called as undefined in the console.

1 Like

Here’s mine:
Project Link - http://codepen.io/CharlesDavid/full/bwpadx/

Feedback is appreciated. This one took a while.

Project Link - https://sroelants.github.io/Twitch/

The code is at https://github.com/sroelants/twitch_dev

Project Link http://codepen.io/gemaderus/full/gwogjr/

1 Like

Hi Aria,

I wrote you before but on the wrong post (the one about wiki). It was meant for this section about twtch. I hope you can reply.

Cheers,

Hey Fuecisla,

Codepen has some kind of glitch with the /full/ page of their site. If you view it in /debug/ mode, it acts as if you are viewing it like it actually would be seen from your own web page. I believe that there is something wrong with codepen’s site that causes some kind of bad http request to twitch when linking from codepen. Debug mode renders all of your code as is (raw), and doesn’t add any extra safeguards that full mode does (such as not having to include the meta html tag for signaling your browser to adjust the viewport width to the device screen).

Hope this helps you out!

1 Like

I’ve spent a long long time on this one. it works in editor view on codepen only to not work on the full page.

It works.

it’s ugly.

here’s mine: http://s.codepen.io/kingjami/debug/vXpqVY :slight_smile:

Don’t think i’ve posted mine yet, so here it is: http://codepen.io/SpiritusSancti5/pen/JRKwab