Couple questions about Twitch.tv project

Couple questions about Twitch.tv project
0

#21

The only thing i need at this point is a Key, because offline streamers don’t link to their profile. I tried many things at this point. I shouldn’t need all this stuff just to put in a freakin link. Like really??? I’m starting to think this is a ego thing.


#22

if streamer is offline so twitch will return null means he/she offline. you could go to the channel page in their api to get another information like logo img…etc


#23

I should just be able to link to their own profile.


#24

or just use the link like https://www.twitch.tv/ + channel name you want to pass on.
example: https://www.twitch.tv/habathcx


#25

Okay thanks ill use that. I did try that before, but you need to open it in a new tab to work. You cant just click…


#26

if you use the link method it doesn’t need a ajax. just wrap the a tag around the name
take a look of my code.


#27

Yeah i did that, just having the issue with it requiring you to open it in a new tab.


#28

what do you mean. if you want to open it in a new tab just put target="_blank" in a tag.
like this:

<a href="https://www.w3schools.com" target="_blank">Visit W3Schools</a>  

#29

Thanks, that worked. I cant believe i didn’t think of that :man_facepalming:


#30

np. you should take a look at w3schools. it wills help you.


#31

Yeah i do use w3 schools a lot. Its been a long time since i have used target="_blank" so i forgot about it. I actually face palmed when you told me lol.


#32

It’s a CodePen necessity. It’s also good practice to use target="_blank. Were you able to get the client ID?


#33

Check the getting started section from the menu bar.


#34

returned url property by the success function is the link to the stream


#35

Okay thanks, ill keep that in mind.