Android Question How to access OneDrive files

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Hi to All
I have a new problem. Till to day I have used Ftp to download/Upload files to a server. Now appeared the need to do the same to OneDrive location. Particularly the Download is important, while upload not necessary at least for now. I installed on my tablet the Microsoft App "OneDrive" and it works, obviously, but my question is whether it is possible to do it with B4A.
Thanks in advance for any hint (or for telling me to forget about ..)
 

DonManfred

Expert
Licensed User
Longtime User

You can use this to store files in OneDrive or any other Provider.
 
Upvote 0

GiovanniPolese

Well-Known Member
Licensed User
Longtime User
Hi. Maybe useless to discuss, due to my ignorance on the subject. I can only observe that in that post, the sentence "with no permission" appears everywhere in the text. Now, OneDrive seems to me to be a Microsoft protected environment, needing "modern authorization method" etc. So it should needs authorizations. Moreover, the OneDrive App by Microsoft, requests a password. Anyway thanks for your answer.
 
Upvote 0

emexes

Expert
Licensed User
I have a new problem. Till to day I have used Ftp to download/Upload files to a server. Now appeared the need to do the same to OneDrive location. Particularly the Download is important

I logged into the web interface to my OneDrive, downloaded a text file, then got the download URL from the browser.

I then used WGET with no login credentials to fetch the same URL using HTTP.

Presumably accessing a file using the usual B4X HTTP methods would work the same.

I haven't yet determined whether the same URL works if the OneDrive file is modified.
 
Upvote 0

josejad

Expert
Licensed User
Longtime User
Hi:

The proposed SaveAs method it would work if you have the Microsoft app Onedrive installed and logged, then when you use "SaveAs", you can choose your onedrive unit, but previously you've logged in with the Microsoft App.

To access directly from your app, I think you would need to use the "Microsoft Graph Api" with okhttputils2, but you need how to know it, or ask someone to make a class.

It would be great to extend the FirebaseAuth library to work with Microsoft too
 
Upvote 0
Top