Skip to content

Instantly share code, notes, and snippets.

@b1a9id

b1a9id/Runner.java Secret

Last active Apr 4, 2021
Embed
What would you like to do?
GoogleCredentials credentials;
try (InputStream inputStream = new ClassPathResource(CREDENTIALS_FILE_PATH).getInputStream()) {
credentials = ServiceAccountCredentials.fromStream(inputStream).createScoped(SCOPES);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment