Pentaho and dropbox integration - pentaho

I am new to Pentaho. I want to download a dropbox folder containing multiple files using pentaho, merge those files and use in other steps of integration.
I have already created a Dropbox API, have API key, access token etc. I previously integrated this in JAVA but as required by my company I need to convert all my data extraction code to Pentaho.
How do I achieve this? Please help.
Thanks in advance!

Related

Service Account for Google Data Studio to Access HTML Files on Google Cloud Storage

I have some HTML files uploaded into a Google Cloud Storage bucket that I would like to embed through an iframe on my dashboard in Google Data Studio.
This works just fine when I open access to the world on the bucket (or resource) by setting the AllUsers permission.
However, I would prefer to only allow access through Google Data Studio. How can this be achieved?
I was thinking of adding a permission for the Service Account of Google Data Studio, but don't really know how to configure this correctly.
I don't believe this is possible right now.
However, a complex solution I can think of is to use a combination of Community Connectors and Community Viz:
Build a community connector that uses your own GCP service account to read the HTML files on GCS and send back the raw HTML content as data.
Build a community viz that can take the HTML data from the connector and render the HTML.
If you have multiple HTML files, you can setup filters in Data Studio so that each viz renders only one HTML.
Code samples for Community Connector and viz are available here.

Store data into google drive's backup tab instead of drive folders

I need to implement same thing like whatsapp storing all chat history to google drive on clicking on backup button in app. And same restore it in new device as required.
I have look for below references for implementing this, but some how I was not able to do it successfully.
https://developer.android.com/guide/topics/data/backup.html
https://developer.android.com/guide/topics/data/data-storage.html
https://developer.android.com/guide/topics/data/data-storage.html#db
Will this data backup option will help in my requirements or I need to do something else?
I successfully developed the file upload to google drive folders, but i need that data in the backup tab of google drive with app name.
can any one guide me how I can implement this or provide me some references?
Thanks in advance..!
You may refer with this documentation. The Google Drive API includes a special hidden folder that your app can use to store application data.
Note: This feature now uses the alias appDataFolder in place of appdata and appfolder.
To be able to use your Application Data folder, request access to the following scope:
https://www.googleapis.com/auth/drive.appdata
For more information about scopes and how to request access to them, see Authorizing Your App with Google Drive.

How to open documents with Office365 in my web application?

We have a cloud based audit application. While performing audit a user typically uploads a lot of documents. Currently in order to view the documents he has to download them. Business requirement is that on clicking the document it should directly open up in another browser tab using office 365 just like dropbox/onedrive. The user should be able to view, edit, save it on server (without downloading) and close it. How to achieve that in our application?
Our webapp is built using ReactJS, NodeJS & MongoDB. Whenever a user uploads a document it gets saved in a AWS S3 bucket.
I went through Microsoft Graph API and OneDrive RestAPI's. Looks like the only solution is to use the OneDrive API's to save files in OneDrive instead of S3. And then it should allow you to use the Office365 apps. Is this the right solution? Am I missing anything?
Is there any other solution?
While the easiest solution is indeed to store the documents in OneDrive, there's also another way. You can enroll in Microsoft's Cloud Storage Partners Program and implement the WOPI protocol on your service. This would allow the Office Online viewers/editors to integrate with your service's data directly.
You need to use both aws and O365 api to reach a working solution. Try the following steps (PS: I have not tried this. But I have saved edited documents from Office 365 to AWS)
Read the uploaded document from AWS using AWS api's and upload it to office doc using office doc api.
Edit the doc using office docs api.
Save the doc back to S3

Groovy rest api for Dropbox without third party plugins/libraries

I am trying to create a groovy script that will, based on some conditions, delete a dropbox folder full of artifacts.
I have been struggling to understand/figure out how to use Groovy restful API's without installing a bunch of Grails libraries or plugins, or the Dropbox API library from github.
Is it possible to use this dropbox URL: https://api.dropboxapi.com/1/fileops/delete_folder
without downloading extra libraries?
I'm having a lot of trouble finding information on the subject without the use of additional software.
Thanks !
Yes, you can easily create your own dropbox client from scratch but it is easier to check hints for JAVA developers and github repo with dropbox-sdk-core, which is already implementing dropbox API.
Remember to check out examples on github.

API to share a folder on Dropbox

I'm looking for a way to share a folder with other Dropbox account through API or similar. My code creates a new directory which I want to auto-share with other person, but currently the only way I've found is to create the folder and share it from the UI. I'm looking for a way to automate this process.
Thanks!
No Dropbox APi is not offering this function yet, but we can expect this in the future
refer this blog post