Save Files from URL to Google Drive
- Open Google Dev Credentials Site.
- Create a Project, name as you like.
- Enable Drive API
- In Credentials Page Click
Create Credentials
and then ClickOAuth Client ID
. - Select Web Application.
- In
Authorized JavaScript origins
enter your domain name or IP whichever you are using for this app. - In
Authorized redirect URIs
enter your domain name or IP with/api/oauth/google/callback
at last. - eg. for
https://bhadooclouduploader.herokuapp.com
it'shttps://bhadooclouduploader.herokuapp.com/api/oauth/google/callback
- Copy your details.
- You'll need these 3 when deploying to Heroku using below button.
- Use your own Client Credentials if you're deploying it, or it won't work.
git clone https://github.com/PBhadoo/gdupload app
cd app
chmod +x mvnw
export client_id=58094879805-jdsomen2duv9ilj81fcu1qkag5todele.apps.googleusercontent.com
export client_secret=EG0OYdjcllAGJ81eEMpQ3vW6
export redirect_uri=https://gdupload.hashhackers.com/api/oauth/google/callback
tmux new -s 1
./mvnw package
./mvnw spring-boot:run
Source: https://github.com/cloud-transfer/cloud-transfer-backend