Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(90)

Unified Diff: siteVerification-cmdline-sample/src/main/java/com/google/api/services/samples/verification/cmdline/VerificationSample.java

Issue 8709047: api samples: Update samples to 1.15.0-rc (Closed) Base URL: https://code.google.com/p/google-api-java-client.samples/
Patch Set: android instructions Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « siteVerification-cmdline-sample/pom.xml ('k') | storage-serviceaccount-appengine-sample/.classpath » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: siteVerification-cmdline-sample/src/main/java/com/google/api/services/samples/verification/cmdline/VerificationSample.java
===================================================================
--- a/siteVerification-cmdline-sample/src/main/java/com/google/api/services/samples/verification/cmdline/VerificationSample.java
+++ b/siteVerification-cmdline-sample/src/main/java/com/google/api/services/samples/verification/cmdline/VerificationSample.java
@@ -66,7 +66,8 @@
private static Credential authorize() throws Exception {
// load client secrets
GoogleClientSecrets clientSecrets = GoogleClientSecrets.load(
- JSON_FACTORY, VerificationSample.class.getResourceAsStream("/client_secrets.json"));
+ JSON_FACTORY, new InputStreamReader(
+ VerificationSample.class.getResourceAsStream("/client_secrets.json")));
if (clientSecrets.getDetails().getClientId().startsWith("Enter")
|| clientSecrets.getDetails().getClientSecret().startsWith("Enter ")) {
System.out.println("Enter Client ID and Secret from "
« no previous file with comments | « siteVerification-cmdline-sample/pom.xml ('k') | storage-serviceaccount-appengine-sample/.classpath » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b