jozsefsallai / discord-google-classroom

a discord bot that sends notifications to a channel about updates in google classroom
MIT License
22 stars 4 forks source link

Error in link #2

Open ThinkerDesigns opened 3 years ago

ThinkerDesigns commented 3 years ago

When I run the code it gives me the link (https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fclassroom.courses.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fclassroom.announcements.readonly&response_type=code&client_id=Google%20OAuth2%20client%20id&redirect_uri=http%3A%2F%2Fserver_url%2Fauthorize) and tells me to enter the code(which I have no idea what it means). When I go to the link it gives this message Screenshot (5) please help

ThinkerDesigns commented 3 years ago

btw can you tell me how to setup the config.json in case that is the problem

Pedro9700 commented 3 years ago

I know this is reallly olddddd but what do you mean open the generated URL from console? how do you open an URL from console?

ThinkerDesigns commented 3 years ago

When I run the code it gives me the link (https://accounts.google.com/o/oauth2/v2/auth?access_type=offline&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fclassroom.courses.readonly%20https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fclassroom.announcements.readonly&response_type=code&client_id=Google%20OAuth2%20client%20id&redirect_uri=http%3A%2F%2Fserver_url%2Fauthorize) and tells me to enter the code(which I have no idea what it means). When I go to the link it gives this message Screenshot (5) please help

Bro. I have the solution The solution is to enter a random url eg: https://thisismyaddress.ddns.net/authorize web address (in config.json --> redirectURI) Then add yourself (email address) to the test members. Then open the generated URL (from console) Then replace https://thisismyaddress.ddns.net:3000/authorize with 127.0.0.1:3000/authorize

(sorry for my english)

This link doesnt work