I managed to get OAuth working and I’ve now got
$code = $_GET[code];
$state = $_GET[state];
and
$accesstoken = $_GET[“access_token”];
$expiry = $_GET[“expires_in”];
$idtoken = $_GET[“id_token”];
$refresh = $_GET[“refresh_token”];
Been reading all over the place and can’t find how to get the broadcaster_id of the person who is authed ? Any help would be appreciated
And the validate endpoint does support Bearer. it jsut has a longer history of using oAuth and in general it ties into “works with standard oauth libraries” for the oauth related endpoints
Additionally if you update your code to spit out the body of the response and not just the HTTP Code then the error message contained in the response should tell you the problem.
So…
Q1. I assume that is the string for the “after” field to get next page ?
Q2. Which is the best page that explains the rate limiting ? I found a few and they seem to contradict !!
I was thinking of having a separate registered app/client for each user that would be using this ? I was told that apps are not limited ? Not sure if that’s accurate ?
I am trying to fully automate CommanderRoot’s known bot blocklist to run on the server (using a database to keep record of who is already blocked) instead of having to have a browser open for 5hrs+ at a time…
Just so you are aware, that “bot” list has a significant number of false positives in it, much like many of the other supposed “bot” lists floating around, and it’s generally recommended not to use such lists as you’ll be negatively impacting the channels you’re mistakenly trying to ‘protect’.
That would be a violation of the developer agreement.
AH - OOPS - Won’t do that then
The list is full of false positives and brings zero benefits to a channel in my opinion.
Well I’ve only had a few in the 2-3 years I’ve been using it, but I intend to add a whitelist to my system so they won’t get blocked in the first place, i.e. it will put regulars and subscribers into the whitelist.
And the bots on this list don’t do anything.
Have to say I’d disagree there. I was getting bot attacked almost EVERY stream. VERY much reduced now, and I haven’t had an attack this year so far, whereas other streamers who were having the problem at the same time I was, are still having them.