

You can also make Drive files available for offline access. Because Drive files are stored in the cloud, any saved changes you or your collaborators make are automatically updated everywhere.

With Google Drive for Desktop, you stream your Drive files directly from the cloud to your Mac or PC, freeing up disk space and network bandwidth. This tool allows you to gain access to your Google Drive files using Windows Explorer (Windows) or Finder (Mac). Google Drive for Desktop is a tool from Google. Import .client.Google has rebranded Google Drive File Stream to be Google Drive for Desktop. Please, see my source code: import .methods.HttpPost I've created a little example, using your code. In both cases, Google API responds with 200 and the above mentioned returned FileResource. StringEntity entity = new StringEntity(jo.toString(), contentType) Jo.element("title", "pets").element("mimeType", "application/") ĬontentType contentType= ContentType.create("application/json", Charset.forName("UTF-8")) HttpResponse response = httpClient.execute(postRequest) Ģ) Using StringEntity JSONObject jo= new JSONObject() tEntity(new UrlEncodedFormEntity(nvps, .UTF_8 )) Nvps.add(new BasicNameValuePair("mimeType", "application/")) Nvps.add(new BasicNameValuePair("title", "vip")) PostRequest.addHeader("Content-Type", "application/json charset=UTF-8") PostRequest.addHeader("Authorization", "Bearer " + accessToken) HttpPost postRequest = new HttpPost(""+GoogleClientConstants.GOOGLE_api_key) I have tried the following ways of invoking the API : I am not sure what is happening to the data I am sending with the post.ġ) Using form name value pairs DefaultHttpClient httpClient = new DefaultHttpClient()

"mimeType": "application/json charset=UTF-8", - this is the wrong mimeType "id": "0B-fYJN-c4UDjUlh1TUZadF9vejA", this is a valid ID I have tried different methods of building the POST request with HTTPClient which execute successfully - but somehow the Google Drive responds with creating a file and returns this data and ignores POST data that I submit. The REST API is document here Please note that the REST AP Request executes - but uses the wrong data: tt creates a new file called "untitled" and puts my json there. I am using Google Drive REST API with HTTPClient to create a folder.
