Home
About
Download
Register
News
Help
Register
Log In
Forums
Scripts & Popups
How do I authenticate a Twitch API request?
Forums
Active Threads
Search
Who's Online
Help
Print Thread
How do I authenticate a Twitch API request?
#
256708
10/02/16
06:33 PM
L
lostay
lostay
L
Yo, I'd like to access some features of the Twitch API (like updating the current Game) but I need to be authenticated.
I'm using "THE" JSON parser and I'm having trouble figuring out how I can validate myself.
Thanks
Copy Link to Clipboard
Re: How do I authenticate a Twitch API request?
#
256709
10/02/16
07:05 PM
S
Sissou
Sissou
S
Add this in the perform or in a "ON CONNECT" script
raw CAP REQ :twitch.tv/membership
And for update the game, use the SReject's scripts.
https://github.com/SReject/mTwitch
You need mTwitch.Core.mrc and mTwitch.StateToTopic.mrc
Last edited by Sissou;
10/02/16
07:07 PM
.
Copy Link to Clipboard
Re: How do I authenticate a Twitch API request?
#
256716
11/02/16
12:36 AM
L
lostay
lostay
L
Is there no other way? I don't feel like using that just for a simple request using the JSON Parser
Copy Link to Clipboard
Re: How do I authenticate a Twitch API request?
#
256719
11/02/16
01:17 AM
Joined:
Jan 2004
Posts: 1,330
L
Loki12583
Hoopy frood
Loki12583
Hoopy frood
L
Joined:
Jan 2004
Posts: 1,330
1. Obtain an oauth token with the proper scope
2. Craft and send the simple request
https://github.com/justintv/Twitch-API/blob/master/authentication.md
https://github.com/justintv/Twitch-API/blob/master/v3_resources/channels.md#put-channelschannel
http://hawkee.com/snippet/10194/
Copy Link to Clipboard
Re: How do I authenticate a Twitch API request?
Loki12583
#
256724
11/02/16
12:27 PM
L
lostay
lostay
L
Originally Posted By: Loki12583
1. Obtain an oauth token with the proper scope
2. Craft and send the simple request
https://github.com/justintv/Twitch-API/blob/master/authentication.md
https://github.com/justintv/Twitch-API/blob/master/v3_resources/channels.md#put-channelschannel
http://hawkee.com/snippet/10194/
Yeah I've read that over and over and I still can't seem to do it...
Can you post an example on how you'd do it?
Thanks.
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage