yeah sure, i just downloaded the js file to call it
< script src=“js/twitch.min.js”> < /script> u know xD
then just did the same as the example of twitch gave
$(function() {
Twitch.init({clientId: CLIENT_ID}, function(error, status) {
if (status.authenticated) {
Twitch.api({method: 'user'}, function (error, user) {
Twitch.api({verb: 'PUT', method: 'users/' + user.name + '/follows/channels/CHANNEL' }, function (error, response) {
});
});
$('.status input').val('Logged in! Allowed scope: ' + status.scope);
$('.authenticated').removeClass('hidden');
} else {
$('.status input').val('Not Logged in! Better connect with Twitch!');
$('.authenticate').removeClass('hidden');
}
});
$(‘.twitch-connect’).click(function() {
Twitch.login({
scope: [‘user_follows_edit’, ‘user_read’, ‘channel_read’]
});
})
});
hope it helps u