Twitch TV JSON API
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 - 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."); } } });
});
Developer | Stephen Mayeux |
Username | StephenMayeux |
Uploaded | September 03, 2022 |
Rating | 3 |
Size | 2,484 Kb |
Views | 40,480 |
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!
Name | Size |
React GitHub Flavored Preview | 3,076 Kb |
Your Local Weather | 3,012 Kb |
Free Code Camp Camper News | 2,540 Kb |
Random Quote Machine | 2,875 Kb |
Markdown Previewer | 3,108 Kb |
Tic Tac Toe | 3,820 Kb |
A Pen by Stephen Mayeux | 1,316 Kb |
Wikipedia Search | 2,871 Kb |
JavaScript Calculator | 2,796 Kb |
Simon Memory Game | 3,176 Kb |
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!
Name | Username | Size |
Sketchy Box | Mnicpt | 3,033 Kb |
Revolving Text Landing Page Trial | TimRuby | 2,976 Kb |
FCC_Twitch.tv | MitchES | 3,466 Kb |
Animated Donut Chart | Jplhomer | 3,808 Kb |
Css3 loader | Clknap | 2,391 Kb |
Simple star rating using js and data-uri | TheEnd | 5,795 Kb |
SVG Hover Animations | Kjbrum | 10,557 Kb |
Review test | Otro_user_gil | 4,054 Kb |
Cake | Kennyname | 7,220 Kb |
Rain Landing in a Pond | Edball | 3,009 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!