We have rest full integration with drive . 

Every time i try to create  a file inside a particular folder this just 
create in my default drive space.


      paramMap.put("kind","drive#parentReference");

     paramMap.put("id","0B0Rxcic23Cs6RlhJc3dCbG1jY1k")

      Writer strWriter = new StringWriter();

try{

       mapper.writeValue(strWriter, paramMap);

        String parents = strWriter.toString();

         

        JsonObject jsonObject = new JsonObject();

        jsonObject.addProperty("title", "newfile.doc");

        jsonObject.addProperty("mimeType", 
"application/vnd.google-apps.document");

        jsonObject.addProperty("parents", "["+parents+"]");

         

        String access_Token =  
updateAccessTokenWithResfreshToken(refreshToken);

        

        String responseString = 
UrlFetchServiceUtil.GoogleDriveinFetch(driveURl, jsonObject.toString(), 
"POST", "application/json",access_Token);


This create file with default space . please help.


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to