How do I get standard link to share pictures in dropbox - dropbox

I need to upload bulk pictures and get each of their links to share it. The link is not standard in dropbox.
Lets say I have two pictures, their names: 1.jpg and 2.jpg
I want to get standard links like:
http://www.dropbox.com/1.jpg,
http://www.dropbox.com/2.jpg
is there any way to do it?
Thanks

You can use the Dropbox API to get or create shared links for files. Specifically, you can use /2/sharing/create_shared_link_with_settings to create a shared link for a file or folder:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings
Or you can use /2/sharing/list_shared_links to get existing shared links:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links
There are also corresponding methods in the SDKs if you're using one:
https://www.dropbox.com/developers/documentation

Related

Exporting a list of images from Google Photos or DropBox as CSV

Do any of the major online photo storage/sharing platforms offer a reasonable way to export a set of image URLs and titles as something like a CSV or fetch them as JSON from a REST API?
I am trying to get any sort of clean list of title, url value pairs for all the images in a particular folder or gallery.
Google Drive/Photos would be my prefered platform, but I would switch to DropBox or other service if I could easily get such an export list.
If you're going to use Google Drive, you'll probably end up using these properties from File Resource:
webViewLink - a link for opening the file in a relevant Google editor
or
webContentLink - a link for downloading the content of the file in a
browser.
You can fetch this properties using files.list or files.get.
For Dropbox, you would use the /2/files/list_folder[/continue] endpoints to list the desired files:
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder-continue
Then, you can use /2/sharing/create_shared_link_with_settings to create shared links for the desired files:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-create_shared_link_with_settings
Or, to retrieve existing shared links, use /2/sharing/list_shared_links:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links
Those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:
https://www.dropbox.com/developers/documentation
Those have corresponding native methods for the HTTPS endpoints.

Using Dropbox API v2 and Python, how to get a list of files and folders present in a publicly shared folder?

I am new to Dropbox API and creating a Python app for a publicly shared link. I want to get a list of files and folders and their modified date present in the said publicly shared link. I am looking for something similar to "files_list_folder" in terms of functionality. Thanks.
[Cross-linking for reference: https://www.dropboxforum.com/t5/API-support/How-to-get-a-list-of-files-and-folders-present-in-a-publicly/m-p/257852#M14954 ]
You can actually use files_list_folder itself to list the contents of a shared link for a folder. To do so, you should use the shared_link parameter. That would look like this:
import dropbox
dbx = dropbox.Dropbox("<ACCESS_TOKEN>")
url = "https://www.dropbox.com/sh/..."
shared_link = dropbox.files.SharedLink(url=url)
print(dbx.files_list_folder(path="", shared_link=shared_link))

Is it possible to know the folder content? OneDrive

I wanna try OneDrive Api for Android and I was taking a look at the methods and possibilities this Api offers on this link and this other one but I don't see any way of listing the files a folder contains.
My App would need to upload some files to OneDrive, always using the same folder as root, say /MyFolder. The problem is that it only knows this root folder and all its content must be found out by means of recursive calls, that is, I list the files contained in /MyFolder and check if it's a folder or a file and in the first case list the files again it contains and so on.
Am I missing something or this Api doesn't provide such thing?
The Json object returned for a query against a Folder should contain a "data" property that is an array of children for the folder. You can see this in the interactive SDK (http://isdk.dev.live.com/dev/isdk/default.aspx) by playing with the "Reading Folder Properties" API.

Do I need to create folders in cloudinary?

I am building an new web application and want to use Cloudinary for users' images. My question is that do I need to create folders in my Cloudinary cloud? The reason I am asking is that if I were using a file system and start having 100,000+ images in one folder, it will start killing my app, and I would need to break then into several folders.
Is it the same for Cloudinary?
Thanks,
It depends on your current and future requirements.
In general, I believe that folders can help with better organizing your resources, especially when there are lots of them.
Note that besides folders, you can also assign tags to your images (e.g., by user) or add a prefix to the images' public IDs (e.g., user1-<image_name>).
You can later use Cloudinary's Admin API to list your resources either by folder/prefix or by tag.

Visitor File Uploader

I have created a Google site for my class, I am trying to place a file uploader on my page. I have found an exemplar codes on the following sites
https://sites.google.com/site/appsscripttutorial/user-interface/upload-doc
https://sites.google.com/site/toolsclass/apps-scripts/file-uploader (deposits into a specific folder but doesn't seem to work)
but I am a complete novice when it comes to app scripts etc so am in desperate need of a real basic step-by-step set of instructions to get the uploader on my site. If it can also be adapted so that the uploaded files are deposited within a specific folder within my Google Drive then it would be greatly appreciated.
There are plenty of code examples of forms with file upload, this one for example shows a full featured form. Try also a search on this forum in the Google-apps-script tag
Try to include the https://driveuploader.com/ via the iFrame embedding.
This is definitely the easiest way how to receive the files from your web visitors into your Google Drive.