WP Display Files plugin requires the usage of the Google Drive ‘Client ID’ & ‘Client Secret Key’ to display Google Drive files on the frontend, in order to work properly. To create a shortcode of the Google Drive in WP Display File Plugin You need to create the ‘Client ID’ & ‘Client Secret Key’.
Generate Google Drive ‘Client ID’ & ‘Client Secret Key’
Follow these steps to get a Google Drive ‘Client ID’ & ‘Client Secret Key’:
Step 1: Please sign in with your Google Cloud console.
Step 2: Click Select a Project dropdown and Create a New project.
Step 3: Search Google Drive API in the search bar and then enable Google Drive API
Step 4: Click on the Credentials menu on the left sidebar, & then click on + Create Credentials as shown below the image. Choose the OAuth Client ID option. Now click on CONFIGURE CONSENT SCREEN button.
Step 5: On the OAuth consent screen, you need to specify the user type. Choose the External radio button and click on Create button.
Step 6: Insert App Name, user support email, and developer’s email addresses.
Step 7: Again, click on Oauth Consent Screen in the left menu, click on the + Add Users button and add a user by specifying your email address into it. Using this email address you will have access to this App. Now in a different browser tab, please log in to this email account.
Step 8: Click the Credentials menu on the left, then click on + Create Credentials and then select OAuth Client ID.
Step 9: At this step choose Web Application from Application Type. Enter a name for your OAuth 2.0 client & then enter an authorized redirect URI. For redirect URI – just copy your current backend page URL (Google Drive Authorization backend page URL ) and enter it in the URIs field as displayed in the below image. Click on create button at the bottom.
Step 10: At this step, Oauth Client will be created as well as its credentials. A popup will be displayed with client Id and Client Secret. Copy and paste them in the form displaying on the left side and click on the Save Settings button.
Step 11: At this step, if you are not logged in to the email account you specified in Step 7, please login at this step. Google will notify you that this app is not verified. Click on the Continue link and on the next screen, enable the checkbox to allow this app to access the Gdrive and to perform actions. If you are already logged into the allowed user’s account you may directly see a popup with an Allow button. Click on this button to grant access.
Step 12: At this step, google may again confirm to provide access to your App. Click on Allow button to grant access. With this, the connection will be established. Now you can go to create a shortcode screen and choose Google Drive to display a listing of files and folders.
Google Drive setup is now complete. Now you just need to create a shortcode to display files and folders listing from Google Drive.
When integrating Rails with a third-party application, it is essential to have a Google Client ID and a secret key. The following steps will guide you on how to get your Google client ID and secret key.
Step 1: Browse the Google Developer portal.
Google Developers Console.
Step 2: Login into your existing google account or, else create a new account.
Step 3: On the dashboard, click on the dropdown menu as shown in the image.
Step 4: Click on New Project.
Step 5: Click on Create button.
Step 6: Choose the Enable APIs and Services option.
Step 7: Search for the Google Play Android Developer API. You can even scroll down to the Mobile section as indicated in the image attached below.
Step 8: Select the Google Play Android Developer API.
Step 9: Choose the Enable option to activate the key.
Step 10: Click on Create credentials.
Step 11: Click on OAuth Client ID.
Step 12: Select the Application Type by clicking on the dropdown menu.
Step 13: Select the web application option.
Step 14: Click on Add URL.
Once the URLs are entered, click on Create to continue.
Step 16: A popup window will show the Client ID and Secret Key. Copy them.
Step 17: Paste the copied keys in their respective fields on the creator software and click on connect. Now, it’s time to link your Google Cloud project -
Step 18: Go to Google Play Console.
Step 19: If you have an existing Google Developer account, log in or sign up for a new account.
Step 20: Click on Settings.
Step 21: Click on API Access under the Developer Account.
Step 22: Select Link Existing Project or create a new project.
Step 23: Click on the Project dropdown menu.
Step 24: Select the project to be linked.
Step 25: Once the project is selected, click on Link Project.
Step 26: The final widow you show the project that has been linked. The user can also unlink the project.
How do I find my Google client ID and secret key?
How to get Google Client ID and Client Secret?.
Go to the Google Developers Console..
Click Select a project ➝ New Project ➝ the Create button..
Enter your Project name ➝ click the Create button..
Click OAuth consent screen in the left side menu ➝ choose User Type ➝ click the Create button..
How do I find my Google login key?
On your Android phone or tablet, open a Google app or a compatible browser like Chrome..
Sign in to your Google Account if you haven't already..
Your device will detect that your account has a security key. Follow the steps to sign in using your key..
How do I create a client ID and secret?
Get an OAuth client ID and secret.
Click the Credentials option..
Click + CREATE CREDENTIALS..
Click OAuth client ID..
Click the Web application check box..
Enter a Name to help you manage OAuth for IBM App Connect; for example: Web client for IBM App Connect..
What is client ID and client secret?
The Client ID is a public identifier of your application. The Client Secret is confidential and should only be used to authenticate your application and make requests to LinkedIn's APIs.