Accessing Other user's OneDrive public folder using OneDrive link - onedrive

I want to integrate OneDrive in my App and want to add a functionality to share data with other user using the public folder's on Onedrive. I can see that OneDrive provides the functionality to create a Link to folder and files. But I cant get the reference on how to create it programmatically. Also once the link to folder or file is created ,is there a way to access it using APIs ?
Please some one advice.
regards

The following is probably what you're looking for:
http://msdn.microsoft.com/en-us/library/dn659732.aspx#get_links_to_files_and_folders

Related

How to copy Dropbox file link from Dropbox folder using vb.net

enter image description here
I use Dropbox folder by setup Dropbox program in my computer
When I have to get direct link to any file in Dropbox folder just I go to Dropbox folder in my computer and choose that file and right click by mouse and select copy direct link of that file
How I do that by vb.net
I want to brows for file and select it and get that direct link by vb.net
And I am sorry for my bad English
[Cross-linking for reference: https://www.dropboxforum.com/t5/Discuss-Developer-API/How-do-I-get-the-share-url-of-a-local-dropbox-file-using-vb-net/m-p/345339 ]
The kind of Dropbox link you're referring to isn't a "direct" link, but rather a "shared" link, where the link itself points to an HTML preview page, where the user can download the file if they want. You can find information on this feature here:
https://help.dropbox.com/files-folders/view-only-access
Dropbox does offer an API you can use for listing, uploading, downloading, and sharing files, among other operations. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here:
https://www.dropbox.com/developers
Dropbox does offer a .NET SDK in particular:
https://github.com/dropbox/dropbox-sdk-dotnet
To create a shared link for a file or folder using the .NET SDK, you would use the CreateSharedLinkWithSettingsAsync method:
https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_CreateSharedLinkWithSettingsAsync_1.htm

Access shared file in Dropbox API

I need to regularly download a file that someone shared with me on Dropbox.
I manage to list all my shared links through the HTTP API (https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links) but this don't list the file I want.
I can't figure out what is the correct way to download through the API a file that someone shared with me. Here below you can see the print screen on Dropbox where this files is, if it can help...
Based on your screenshot, it sounds like you need to use the /2/sharing/list_received_files and /2/sharing/list_received_files/continue endpoints instead.

OneDrive API Link Sharing Options

I'm currently working on an application that interacts with OneDrive. I've read RESTful API manual and the only option available is to share document.
My questions are:
Is there any way to remove or regenerate file sharing link?
Is there any way to specify user emails to give an access to them?
Is there any way to control this UI option "Recipients need to sign in with Microsoft Account"?
The sharing links that are created do not expire. If you create a sharing link for a file that already shared, a HTTP 200 code will be returned. At this time, createLink is only available but the user can remove the sharing permission from the OneDrive website. Specific user access isn't currently supported. Like the OneDrive website, any created link will not require sign-in. I hope that helps.
The only way to regenerate link to a file is to:
Copy file "foo.docx" to "(Copy) foo.docx"
Remove file "foo.docx"
Rename "(Copy) foo.docx" to "foo.docx"
Generate link for "foo.docx"
There is no way to specify emails for document access
There is no way to control this UI option "Recipients need to sign in with Microsoft Account"

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

Is there a way to create a Dropbox link that opens a file or a folder in the native app?

Basically, what I would like to do is to create a link from a web application that will open a Dropbox file from appropriate Dropbox native app. Google Drive for example allows you to re-format the unique URL for a file such as https://docs.google.com/blablabla which you can retrieve from their API, into googledrive://docs.google.com/blablabla and lets you open the file in Google Drive native app.
I have tried dropbox:// URLs with no success, and have not found any existing conversation on this despite running cross multiple conversations on the same subject for Google Drive or Evernote. Please let me know if it is possible to somehow generate this via API or based on the folder structure etc.
Thanks!