spiffyk / twitch-node-sdk Goto Github PK
View Code? Open in Web Editor NEWThe Twitch JavaScript SDK rewritten for use with Node.js, NW.js or Electron
Home Page: https://www.npmjs.com/package/twitch-sdk
License: MIT License
The Twitch JavaScript SDK rewritten for use with Node.js, NW.js or Electron
Home Page: https://www.npmjs.com/package/twitch-sdk
License: MIT License
When opening the authentication popup and choosing "Cancel" instead of "Authorize" it throws the console error ("Got exception: Uncaught Error: A hash must be specified"). It also redirects the new popup to: https://api.twitch.tv/kraken/ and displays the json response.
Is there a callback to Twitch.login() to avoid this? Or is there any other way around this?
The Twitch Node.js SDK needs to look much more like a Node module and much less like a web library. The hassle with the Makefile during development is not worth it and is prone to errors. I made a branch named major-refactor
to address this.
twitch.js
file that loads its parts from lib/
as Node modulesdocco
comments with yuidoc
comments as they frankly make more sense
yuidoc
comments exhaustive enoughTwitch.events
methods (on
, once
etc.) into Twitch
for convenienceWas trying to use with Electron but found that the README.md from npm and github don't match, meaning the npm module is outdated. I can build myself, but using npm would be nice too. Kappa
Hello, I'm terribly sorry for not responding to issues lately. As I got to the university, I no longer have much time to maintain this project and I have also lost interest in it. I have also never anticipated that this project would be of any use for anyone but I have been proven wrong. I would hereby like to offer handing the project over to a new maintainer or to create an organization of maintainers to manage the project. Which one would be better, I don't know so I'm asking you guys.
Whether you are willing to take on the project or if you think creating an organization is a better idea, please express yourself in the comments here!
Would anyone be against adding the ability to disable console output? It seems it would be a quick implementation.
function param()
doesn't support parsing multi-level Objects. This is needed for certain endpoints like updating the channel object at /channels/:channel.
Window is redirected and displays some response object. The token is never saved and window remains open after login.
A detail - I'm using nw.js to run an express server that then runs the rest of my app. If I use Twitch.init
by itself & only passing a client ID, I get console output that it connected.
When I try to pass nw.gui to it, this is where I run into issues.
var gui = require('nw.gui');
Twitch.init({
clientId: '<CLIENTID>',
session: status,
nw: gui
}, function(error, status) {
if (error) {
console.log(error);
}
if (status.authenticated) {
console.log('SYS: User is authenticated. ' + status);
}
});
This results in Uncaught Error: Invalid value for argument 2. Property 'toolbar': Unexpected property.
I tried removing the toolbar
property from twitch-sdk/twitch.js entirely. It passes this part now, obviously because we're just skipping the problem. But then it fails on win.on('loaded'...
saying on
is an unknown property of win
.
So... basically nw.gui is not being passed correctly to twitch-sdk. What's at fault here?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.