Prerequisites:
Instructions:
-
Install requirement.txt:
$ pip3 install -r requirements.txt
Instructions:
$ pytho3 main.py
Instructions:
- Rename file
.env_sample
to.env
- Add your tokens.
Instructions:
-
You must follow https://discordpy.readthedocs.io/en/stable/discord.html in order to obtain
TOKEN
. -
You must activate Discord's developer mode in order to obtain a
channel_id
. Enter the channel, then copy the ID (i.e artist channel).
Instructions:
-
To register an application, go to https://workdrive.zoho.com/apidocs/v1/oauth2authentication/register-application
-
Use this link to get to Authorization Request.
https://accounts.zoho.com/oauth/v2/auth?scope=WorkDrive.files.ALL&client_id={client_id}&response_type=code&access_type=offline&redirect_uri=https://janpoonthong.github.io/portfolio/zoho&state=register
be certain to include client_id
on {client_id}
- Copy the
code
and paste on code={}
POST request on postman:
https://accounts.zoho.com/oauth/v2/token?code={code}&client_secret={clinet_secret}&redirect_uri=https://janpoonthong.github.io/portfolio/zoho&grant_type=authorization_code&client_id={client_id}
- Put that refresh token on that you will use .env
- Done.