Would like to create the excel file on sharepoint site using Java Graph API , also would like to get the id of the same file so that modifications on the file can be done using the Graph API.
One should have the Drive Id , Site Id handy for doing this.
Create a folder on your sharepoint site , share the same folder in one drive so that the paths can be used to upload the excel file.
Use the below given link for more information.
https://rahul-metangale.medium.com/upload-a-file-to-sharepoint-using-azure-graph-api-9deacce57449
There is more to this than specified in this blog.
Related
I'm trying to create a spreadsheet on google drive using DRIVE API in Java, the documentation on google site is very confusing, can somebody please help me by pointing to a sample example that demonstrate the creation of documents on google drive in Java using the latest DRIVE API?
Based from this SO question, using Drive API seems to only let you create new empty files with the spreadsheet MIME type. The Drive API is only concerned with operations at the whole file level. It is only possible in Google Drive to upload the created spreadsheet.
You can use Google Sheets API (formerly called the Google Spreadsheets API) which lets you develop client applications that create, read and modify worksheets and data in Google Sheets. This API can manage the worksheets in a Google Sheets file. You should strongly consider using a GData client library to interact with the API. Follow the following steps here to setup a development environment for working with the Sheets API.
You can create a spreadsheet via Drive API by calling files.create() with mimeType=application/vnd.google-apps.spreadsheet and uploading a CSV file. See Importing to Google Docs Types where there's a Java sample.
Is there a way to unzip a zip file that is available in google drive using google drive java api.
i Am able to retrieve all the files from a particular users drive , now what i need to do is, if a file is a zip file, i need to extract it and get the files available inside it.
Thanks in advance.
In the Google developers code, method to upload a spreadsheet is given for .net but not java . Does any one know the sample code for this . code on how to convert an excel file to a spreadsheet and upload it will also do .
Can you please check the below url. It might help you
http://stackoverflow.com/questions/19361814/create-spreadsheet-using-google-spreadsheet-api-in-google-drive-java
login/OAuth2 The Google "DrEdit" tutorial is a good starting place for login/OAuth2 etc.
Upload: The only method I have seen uses Google drive sdk
Java example here:
https://developers.google.com/drive/v2/reference/files/insert
An example of the convert, (in PHP) using the same API,
Create a Google Drive Spreadsheet from a local CSV file via the Google Drive API
I have built a document management system on top of app engine using java . I use Google drive to store all my document . This is document management system is just a part my application . I have provided user facilities like download , upload , versioning of documents etc making use of drive API . Now I have requirement for search the content of the file and when the content matches any of the files in drive it show me the file names where pattern matches .
I searched for drive API's but couldn't find suitable solution .
Need some help .
see here :
https://developers.google.com/drive/search-parameters
and
fullText string contains Full text of the file including title, description, and content.
in the drive SDK documentation
Is it possible to download files of any type from Google Docs using the Google Docs API? (jpg, zip, txt)
I can figure out how to download word, powerpoint, and excel files but want to be able to upload and download any type of file to Google Docs. I know it is possible to do this with the online uploader but can't seem to get the downloading part to work with the API.
I'm using the Java wrapper to the API. Is it possible to use the Java version of the API to download all file types?
Since the last answer was written, that API is deprecated. There's sample Java code on the Google Dev page for the (newer) Google Drive API for managing downloads from Google Docs.
This handles a large variety of MIME types.
See this page http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html
and this for specifically downloading documents and files
http://code.google.com/apis/documents/docs/3.0/developers_guide_protocol.html#DownloadingDocsAndFiles
The document listing XML returned by google has file type and the URL to download the file in the node. You can use the URL to download the file contents.