Sure! To make the installation of Use-your-Drive as easy as possible, the plugin uses a pre-configured Google App. However if you have created your own Google App, you probably also want to change the Redirect URI.
Before you change any code, please make sure that the default setup works! Also, if you don't know what you are doing, please use the default configuration.
If you still want to change the Redirect URI, you can follow the following steps:
- Check if you have a redirect.php script in the Use-your-Drive plugin folder. If not:
Download the redirect script on this page (redirect.php), and store it the plugin folder
- Open 'wp-content/plugins/use-your-drive/includes/UseyourDrive.php' and search for 'http://www.florisdeleeuw.nl/use-your-drive/index.php'. Change this url to the url to your redirect script (e.g. http://www.mysite.com/wp-content/plugins/use-your-drive/redirect.php. Save the file.
- Go to your App in the Google Developer Console and change the Redirect URI to the same url as above. Save it.
- Re-authorize your the plugin!