@@ -0,0 +1,1718 @@
+package app.android.gambit.remote;%0A%0A%0Aimport java.io.IOException;%0A%0Aimport com.google.api.client.http.HttpTransport;%0Aimport com.google.api.client.http.javanet.NetHttpTransport;%0Aimport com.google.api.client.http.json.JsonHttpRequest;%0Aimport com.google.api.client.http.json.JsonHttpRequestInitializer;%0Aimport com.google.api.client.json.JsonFactory;%0Aimport com.google.api.client.json.jackson.JacksonFactory;%0Aimport com.google.api.services.drive.Drive;%0Aimport com.google.api.services.drive.DriveRequest;%0A%0A%0Aclass GoogleDriveHelper%0A%7B%0A%09private Drive driveService;%0A%0A%09public GoogleDriveHelper(String authToken, String apiKey) %7B%0A%09%09driveService = buildDriveService(authToken, apiKey);%0A%09%7D%0A%0A%09private Drive buildDriveService(String authToken, String apiKey) %7B%0A%09%09// TODO: Change to compatible transport%0A%09%09HttpTransport httpTransport = new NetHttpTransport();%0A%09%09JsonFactory jsonFactory = new JacksonFactory();%0A%09%09JsonHttpRequestInitializer requestInitializer = new DriveRequestInitializer(authToken, apiKey);%0A%0A%09%09Drive.Builder driveServiceBuilder = new Drive.Builder(httpTransport, jsonFactory, null);%0A%09%09driveServiceBuilder.setJsonHttpRequestInitializer(requestInitializer);%0A%0A%09%09return driveServiceBuilder.build();%0A%09%7D%0A%0A%09private static class DriveRequestInitializer implements JsonHttpRequestInitializer%0A%09%7B%0A%09%09private final String authToken;%0A%09%09private final String apiKey;%0A%0A%09%09public DriveRequestInitializer(String authToken, String apiKey) %7B%0A%09%09%09this.authToken = authToken;%0A%09%09%09this.apiKey = apiKey;%0A%09%09%7D%0A%0A%09%09@Override%0A%09%09public void initialize(JsonHttpRequest jsonHttpRequest) throws IOException %7B%0A%09%09%09DriveRequest driveRequest = (DriveRequest) jsonHttpRequest;%0A%0A%09%09%09driveRequest.setOauthToken(authToken);%0A%09%09%09driveRequest.setKey(apiKey);%0A%09%09%7D%0A%09%7D%0A%7D%0A

Add basic GoogleDriveHelper class with authorization possibility.