PluginProbe
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards / 5.5.85
WP Data Access – App Builder for Tables, Forms, Charts, Maps & Dashboards v5.5.85
5.5.85 5.5.84 5.5.83 5.5.82 5.5.81 5.5.80 5.5.79 5.5.77 5.5.76 5.5.75 5.5.73 5.5.72 5.5.22 5.5.23 5.5.29 5.5.3 5.5.31 5.5.32 5.5.34 5.5.35 5.5.36 5.5.37 5.5.4 5.5.40 5.5.41 All 161 releases
← All changes | WPDataAccess/Drive/WPDA_Google_Drive.php +1 -6 5.5.77 → 5.5.85 View file →
@@ -4,8 +4,9 @@
4 4
5 5 use WPDataAccess\Utilities\WPDA_Remote_Call;
6 6 use WPDataAccess\WPDA;
7 7
8 +// phpcs:disable PluginCheck.CodeAnalysis.Offloading.OffloadedContent
8 9 class WPDA_Google_Drive extends WPDA_Drive {
9 10
10 11 const GOOGLE_CLIENT_ID = '400971594152-30c2ro61ohe4jbb2jt09n9q86itnkjvm.apps.googleusercontent.com';
11 12 const GOOGLE_CLIENT_SECRET = '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';
@@ -21,14 +22,8 @@
21 22
22 23 }
23 24
24 25 public function authorize( $authorization, $enabled = true ) {
25 -
26 - // Link to authorization application (does not return a authorization code):
27 - // Template
28 - // https://accounts.google.com/o/oauth2/v2/auth?client_id=YOUR_CLIENT_ID&redirect_uri=GOOGLE_REDIRECT_URI&response_type=code&scope=https://www.googleapis.com/auth/drive.file%20https://www.googleapis.com/auth/drive.readonly&access_type=offline&prompt=consent
29 - // Actual
30 - // https://accounts.google.com/o/oauth2/v2/auth?client_id=400971594152-30c2ro61ohe4jbb2jt09n9q86itnkjvm.apps.googleusercontent.com&redirect_uri=http://localhost&response_type=code&scope=https://www.googleapis.com/auth/drive.file%20https://www.googleapis.com/auth/drive.readonly&access_type=offline&prompt=consent
31 26
32 27 // TODO: Get authorization code from reply
33 28
34 29 $response = WPDA_Remote_Call::post(