diff --git a/extensions/gdata/src/com/google/refine/extension/gdata/GoogleAPIExtension.java b/extensions/gdata/src/com/google/refine/extension/gdata/GoogleAPIExtension.java index 028e76977..d1dbc6d04 100644 --- a/extensions/gdata/src/com/google/refine/extension/gdata/GoogleAPIExtension.java +++ b/extensions/gdata/src/com/google/refine/extension/gdata/GoogleAPIExtension.java @@ -163,7 +163,7 @@ abstract public class GoogleAPIExtension { public static Sheets getSheetsService(String token) throws IOException { final Credential credential; if (token != null) { - credential = new Credential.Builder(null).build().setAccessToken(token); + credential = new Credential.Builder(BearerToken.authorizationHeaderAccessMethod()).build().setAccessToken(token); } else { credential = null; }