Thanks vinny :) Can you help me in Implementing Server side authorization of google api ??
I read from this link https://developers.google.com/drive/auth/web-server#next_steps .There are some points where i struck . Thanks in advance :) On Friday, 17 May 2013 23:41:21 UTC+5:30, Vinny P wrote: > > On Wednesday, May 15, 2013 11:58:34 AM UTC-5, prateek bansal wrote: > >> Thanks Vinny for reply :) >> >> the Link which you mention is for php .I need Java code. >> > > The link is https://developers.google.com/drive/folder which does not > contain any PHP code. It is a standard REST/JSON response which can be > parsed with any JSON library, such as the ones listed here: > http://stackoverflow.com/questions/338586/a-better-java-json-library . > > Assuming you are using the Java Google Drive library (available here: > http://code.google.com/p/google-api-java-client/wiki/APIs#Drive_API ) the > relevant code to create a directory is basically: > > File body = new File(); > body.setTitle("Folder-Name-Here"); > body.setMimeType("application/vnd.google-apps.folder"); > File file = service.files().insert(body).execute(); > folderId = file.getId(); > > > (Ignore the "File" object, Google Drive treats directories as a special > "file") > > > ----------------- > -Vinny P > Technology & Media Advisor > Chicago, IL > > My Go side project: http://invalidmail.com/ > > -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
