File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
samples/snippets/src/main/java/com/example/bigquery Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ public static void queryExternalSheetsTemp(
54
54
55
55
// Create credentials with Drive & BigQuery API scopes.
56
56
// Both APIs must be enabled for your project before running this code.
57
+ // [START bigquery_auth_drive_scope]
57
58
GoogleCredentials credentials =
58
59
ServiceAccountCredentials .getApplicationDefault ()
59
60
.createScoped (
@@ -65,6 +66,7 @@ public static void queryExternalSheetsTemp(
65
66
// once, and can be reused for multiple requests.
66
67
BigQuery bigquery =
67
68
BigQueryOptions .newBuilder ().setCredentials (credentials ).build ().getService ();
69
+ // [END bigquery_auth_drive_scope]
68
70
69
71
// Skip header row in the file.
70
72
GoogleSheetsOptions sheetsOptions =
You can’t perform that action at this time.
0 commit comments