Skip to content

Commit c2414c4

Browse files
author
Eric Koleda
committed
Load the credentials with an absolute path and fix the comment about deleting saved tokens.
1 parent 86e43a3 commit c2414c4

12 files changed

Lines changed: 23 additions & 23 deletions

File tree

adminSDK/directory/quickstart/src/main/java/AdminSDKDirectoryQuickstart.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public class AdminSDKDirectoryQuickstart {
4242

4343
/**
4444
* Global instance of the scopes required by this quickstart.
45-
* If modifying these scopes, delete your previously saved credentials folder at /secret.
45+
* If modifying these scopes, delete your previously saved tokens/ folder.
4646
*/
4747
private static final List<String> SCOPES = Collections.singletonList(DirectoryScopes.ADMIN_DIRECTORY_USER_READONLY);
48-
private static final String CREDENTIALS_FILE_PATH = "credentials.json";
48+
private static final String CREDENTIALS_FILE_PATH = "/credentials.json";
4949

5050
/**
5151
* Creates an authorized Credential object.

adminSDK/reports/quickstart/src/main/java/AdminSDKReportsQuickstart.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public class AdminSDKReportsQuickstart {
4242

4343
/**
4444
* Global instance of the scopes required by this quickstart.
45-
* If modifying these scopes, delete your previously saved credentials folder at /secret.
45+
* If modifying these scopes, delete your previously saved tokens/ folder.
4646
*/
4747
private static final List<String> SCOPES = Collections.singletonList(ReportsScopes.ADMIN_REPORTS_AUDIT_READONLY);
48-
private static final String CREDENTIALS_FILE_PATH = "credentials.json";
48+
private static final String CREDENTIALS_FILE_PATH = "/credentials.json";
4949

5050
/**
5151
* Creates an authorized Credential object.

adminSDK/reseller/quickstart/src/main/java/AdminSDKResellerQuickstart.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public class AdminSDKResellerQuickstart {
4242

4343
/**
4444
* Global instance of the scopes required by this quickstart.
45-
* If modifying these scopes, delete your previously saved credentials folder at /secret.
45+
* If modifying these scopes, delete your previously saved tokens/ folder.
4646
*/
4747
private static final List<String> SCOPES = Collections.singletonList(ResellerScopes.APPS_ORDER);
48-
private static final String CREDENTIALS_FILE_PATH = "credentials.json";
48+
private static final String CREDENTIALS_FILE_PATH = "/credentials.json";
4949

5050
/**
5151
* Creates an authorized Credential object.

appsScript/quickstart/src/main/java/AppsScriptQuickstart.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public class AppsScriptQuickstart {
4747
* If modifying these scopes, delete your previously saved credentials folder at /secret.
4848
*/
4949
private static final List<String> SCOPES = Collections.singletonList("https://www.googleapis.com/auth/script.projects");
50-
private static final String CREDENTIALS_FILE_PATH = "credentials.json";
50+
private static final String CREDENTIALS_FILE_PATH = "/credentials.json";
5151

5252
/**
5353
* Creates an authorized Credential object.

calendar/quickstart/src/main/java/CalendarQuickstart.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ public class CalendarQuickstart {
4343

4444
/**
4545
* Global instance of the scopes required by this quickstart.
46-
* If modifying these scopes, delete your previously saved credentials/ folder.
46+
* If modifying these scopes, delete your previously saved tokens/ folder.
4747
*/
4848
private static final List<String> SCOPES = Collections.singletonList(CalendarScopes.CALENDAR_READONLY);
49-
private static final String CREDENTIALS_FILE_PATH = "credentials.json";
49+
private static final String CREDENTIALS_FILE_PATH = "/credentials.json";
5050

5151
/**
5252
* Creates an authorized Credential object.

classroom/quickstart/src/main/java/ClassroomQuickstart.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ public class ClassroomQuickstart {
4141

4242
/**
4343
* Global instance of the scopes required by this quickstart.
44-
* If modifying these scopes, delete your previously saved credentials/ folder.
44+
* If modifying these scopes, delete your previously saved tokens/ folder.
4545
*/
4646
private static final List<String> SCOPES = Collections.singletonList(ClassroomScopes.CLASSROOM_COURSES_READONLY);
47-
private static final String CREDENTIALS_FILE_PATH = "credentials.json";
47+
private static final String CREDENTIALS_FILE_PATH = "/credentials.json";
4848

4949
/**
5050
* Creates an authorized Credential object.

drive/quickstart/src/main/java/DriveQuickstart.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public class DriveQuickstart {
4242

4343
/**
4444
* Global instance of the scopes required by this quickstart.
45-
* If modifying these scopes, delete your previously saved credentials/ folder.
45+
* If modifying these scopes, delete your previously saved tokens/ folder.
4646
*/
4747
private static final List<String> SCOPES = Collections.singletonList(DriveScopes.DRIVE_METADATA_READONLY);
48-
private static final String CREDENTIALS_FILE_PATH = "credentials.json";
48+
private static final String CREDENTIALS_FILE_PATH = "/credentials.json";
4949

5050
/**
5151
* Creates an authorized Credential object.

gmail/quickstart/src/main/java/GmailQuickstart.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public class GmailQuickstart {
4242

4343
/**
4444
* Global instance of the scopes required by this quickstart.
45-
* If modifying these scopes, delete your previously saved credentials/ folder.
45+
* If modifying these scopes, delete your previously saved tokens/ folder.
4646
*/
4747
private static final List<String> SCOPES = Collections.singletonList(GmailScopes.GMAIL_LABELS);
48-
private static final String CREDENTIALS_FILE_PATH = "credentials.json";
48+
private static final String CREDENTIALS_FILE_PATH = "/credentials.json";
4949

5050
/**
5151
* Creates an authorized Credential object.

people/quickstart/src/main/java/PeopleQuickstart.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public class PeopleQuickstart {
4242

4343
/**
4444
* Global instance of the scopes required by this quickstart.
45-
* If modifying these scopes, delete your previously saved credentials/ folder.
45+
* If modifying these scopes, delete your previously saved tokens/ folder.
4646
*/
4747
private static final List<String> SCOPES = Arrays.asList(PeopleServiceScopes.CONTACTS_READONLY);
48-
private static final String CREDENTIALS_FILE_PATH = "credentials.json";
48+
private static final String CREDENTIALS_FILE_PATH = "/credentials.json";
4949

5050
/**
5151
* Creates an authorized Credential object.

sheets/quickstart/src/main/java/SheetsQuickstart.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ public class SheetsQuickstart {
4141

4242
/**
4343
* Global instance of the scopes required by this quickstart.
44-
* If modifying these scopes, delete your previously saved credentials/ folder.
44+
* If modifying these scopes, delete your previously saved tokens/ folder.
4545
*/
4646
private static final List<String> SCOPES = Collections.singletonList(SheetsScopes.SPREADSHEETS_READONLY);
47-
private static final String CREDENTIALS_FILE_PATH = "credentials.json";
47+
private static final String CREDENTIALS_FILE_PATH = "/credentials.json";
4848

4949
/**
5050
* Creates an authorized Credential object.

0 commit comments

Comments
 (0)