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.
Before you deploy follow the above steps or it won't work.
Source: https://github.com/cloud-transfer/cloud-transfer-backend