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 Credentialsand then ClickOAuth Client ID. - Select Web Application.
- In
Authorized JavaScript originsenter your domain name or IP whichever you are using for this app. - In
Authorized redirect URIsenter your domain name or IP with/api/oauth/google/callbackat last. - eg. for
https://bhadooclouduploader.herokuapp.comit'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 appcd appchmod +x mvnwexport client_id=58094879805-jdsomen2duv9ilj81fcu1qkag5todele.apps.googleusercontent.comexport client_secret=EG0OYdjcllAGJ81eEMpQ3vW6export redirect_uri=https://gdupload.hashhackers.com/api/oauth/google/callbacktmux new -s 1./mvnw package./mvnw spring-boot:run
Source: https://github.com/cloud-transfer/cloud-transfer-backend