#๐ Help Please!!!
70 messages ยท Page 1 of 1 (latest)
@jade musk
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
"just". implementing anything regarding oauth2 is not necessarily a trivial task.
typicall a token, or "access token" is a random string that you get from the Authentication server after authenticating to an oauth service in some fashion
no need to apologize ๐
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
(use the link)
no, use the link above. paste your code there, save it, and then share the new link here.
doesn't really matter. it seems you need to copy the url you get redirected to after Authorizing access.
and paste it into the terminal
usually you get redirected to a webserver that you control...
no
authorizing is when you click the "accept' button on your browser
or whatever the button is called
"authorizing" literally just means "giving permission" to something
no, when you click that, you get redirected to another URL
and the URL you need to copy and paste into your terminal.
you should see that message in your terminal
no. can't
the one you get redirected to after accepting
I don't know what you put in as redirect url
I know you're not trolling
nope, it should never be a url of some domain that you don't own
use http://localhost for now
and make sure to input the exact same url in the code at the top
no
at the top
there as a variable name REDIRECT_URI or something like that
make sure it containst the exact same url (in quotes)
yes
you also need to insert your client id and secret you got from your developer portal website thingy, but don't share those
you didn't do what I said ๐
^
yes. usually you don't need to login if you're already logged in.. .but I guess you need to login if not already happened
not .com, but yea.
you copy that entire link you're on now, and paste it into your terminal
๐
it should have printed some "User Info: ..." as well?
yea, it mesan it works.
the script is however just an example of how to do stuff with oauth2
access tokens are used to access your data on twitch
you gave the script permission to access some of your data (the scopes at the very top), and it received an access token to do just that.
not sure. where did you get that url from?
can't find it in the API docs
naturally. if you just made it up, there is a good chance it's wrong
and looking in the docs, there doesn't even seem to be follow api
no
a token is tied to a user
so if anything you may be able to make yourself follow some streamer
you can.t make others follow you
yea no
I'm gonna stop you there
that's 100% against twitch TOS
!rule 5
5. Do not provide or request help on projects that may violate terms of service, or that may be deemed inappropriate, malicious, or illegal.
not gonna help you with that. sorry. ๐ and it's also not possible with the API anyway.
(I also have a nagging feeling, your "friend" is actually called chatgpt)
<@&831776746206265384>
I doubt you can achieve what you're trying with the API anyway
the only thing you got with that is access to your own account.
sure you are.
No.
I dont' care
hardly.
!cban 1061429159131357286 1w Asking ToS-breaking questions
:warning: The owner of this post is no longer in the server.
:incoming_envelope: :ok_hand: applied ban to @fast sandal until <t:1725689907:f> (7 days).
!close
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.