Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to use APIs?

Featured Replies

Hello,

 

I need to make a stream list like this: http://www.lolking.net/streams where it will pull streams from twitch.tv and show who is online/offline and how many viewers.

 

I recognised that I need to use an API to build such a page which I found here: https://github.com/justintv/Twitch-API/blob/master/resources/streams.md

 

However I'm now stumped with what to do.

 

I recognise that if I wanted all the information for the stream channel "GameSpot" for example I can type in https://api.twitch.tv/kraken/streams?channel=GameSpot and it shows all the information. BUT, how do I use this in my own website?

 

First time with APIs. Not sure what language I'm meant to be using. If anyone could help me out I'd be so happy.

 

Thanks,

 

- Luke

It's a RESTful API; so you'll need to learn how to code REST API's and use json.

 

ETA you can use PHP or their Javascript SDK.

 

ETA 2:

You can find their PHP integration guide here: https://github.com/j...ration-Guide.md

 

Not being funny but that took me 2 minutes from the link you gave, it pays to actually read the site. The reason I say this is because if you don't take the time to read the documentation you're going to make a hash of it and have problems (security, bugs etc.)

Edited by FizixRichard

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.