Twitch TV JSON API

Size
2,484 Kb
Views
40,480

How do I make an twitch tv json api?

StephenMayeux.com -- "Hella Good Sites from a Hella Nice Dude"This assignment was created in part of the Free Code Camp curriculum.. What is a twitch tv json api? How do you make a twitch tv json api? This script and codes were developed by Stephen Mayeux on 03 September 2022, Saturday.

Twitch TV JSON API Previews

Twitch TV JSON API - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Twitch TV JSON API</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel='stylesheet prefetch' href='http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css'>
<link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Bangers'>
<link rel='stylesheet prefetch' href='http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <body> <h1>FreeCodeCamp Twitch TV</h1> <div class='container'> <div class='row'> <div class='col-xs-6'> <div class='status'></div> </div> <div class='col-xs-6'> <div class='logo'> <a href='http://www.twitch.tv/freecodecamp' target='_blank'><img class='img-responsive' src='http://static-cdn.jtvnw.net/jtv_user_pictures/freecodecamp-profile_image-f1b681380c0b0380-300x300.png'></a> </div> </div> </div> </div>
</body> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Twitch TV JSON API - Script Codes CSS Codes

body { background: #de6f1b;
}
h1 { font-family: 'Bangers', cursive; font-size: 62px; text-align: center; padding: 20px; text-shadow: 2px 2px #828282
}
.nav { background: #fff; border-radius: 10px;
}
p { font-size: 24px; font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700px;
}

Twitch TV JSON API - Script Codes JS Codes

$(document).ready(function(){ var channelsURL = 'https://api.twitch.tv/kraken/channels/freecodecamp'; var streamsURL = 'https://api.twitch.tv/kraken/streams/freecodecamp'; $.ajax({ url: streamsURL, dataType: 'jsonp', success: function(apiResponse) { if (apiResponse.stream != null) { $('.status').append("<p>Sweet! <a href='http://www.twitch.tv/freecodecamp' target='_blank'>FreeCodeCamp</a> is currently streaming.</p></br><p>The current stream is " + apiResponse.stream.game + ".</p>"); } else if (apiResponse.stream == null) { $('.status').append("<p>I'm sorry, but <a href='http://www.twitch.tv/freecodecamp' target='_blank'>FreeCodeCamp</a> is currently offline. Please try again later."); } } });
});
Twitch TV JSON API - Script Codes
Twitch TV JSON API - Script Codes
Home Page Home
Developer Stephen Mayeux
Username StephenMayeux
Uploaded September 03, 2022
Rating 3
Size 2,484 Kb
Views 40,480
Do you need developer help for Twitch TV JSON API?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Stephen Mayeux (StephenMayeux) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!