Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
tim
8 years agoExplorer | Level 4
API v2 equivalent of /1/metadata/link functionality is required
Please let us know the equivalent for API v2 of /1/metadata/link. There are countless reasons why this functionality is important for your API -- which you hopefully already know, otherwise I do...
tim
8 years agoExplorer | Level 4
Greg I was very frustrated to get this email from Dropbox today. Sure, I spent hours and hours working on my apps' migration to v2 already. And nonetheless, despite my efforts, soon tens of thousands of my users are going to wake up one morning and the app will have stopped working. And there's nothing I can do.
Can you please get this endpoint migrated to v2?
To provide our developers with the most up-to-date features and support a single, consistent platform, we're turning off API v1 soon. You'll need to fully migrate your app to API v2 before the turn off date.
Greg-DB
Dropbox Community Moderator
8 years agoThanks for the feedback tim. I'll bring this up with the team again.
By the way, we are now reviewing requests for extensions to API v1 access. If you'd like an extension for access to API v1, please open an API ticket and include:
- The app key(s) for the app(s) you need an extension for.
- The reason(s) for the extension.
- How long of an extension you're asking for.
- tim8 years agoExplorer | Level 4
Thanks, I requested an extension for my app ("Grab for Dropbox" on iOS app store, "Grab Media" on dropbox dev portal)
- jczorkmid8 years agoExplorer | Level 4
I have a very similar need. I've been using /1/metadata/link until now. I had looked into migrating a while ago, but this feature wasn't in v2. Now that we're getting down to the wise I tried again to migrate to v2 and I was suprised that there was no way to get the listing any longer. In fact I didn't even see the equivilant of the 'is_dir' property telling me if the link pointo to a file or directory. Is this coming any time soon? v2 API isn't usable for me at all.
- Greg-DB8 years ago
Dropbox Community Moderator
jczorkmid I don't have an update on this right now. This would certainly be a legitimate reason to ask for an exception though, so please feel free to do so, as above, if you haven't already.
Also, to determine if the result is for a file or folder, you can check the ".tag" value in the response from /2/sharing/get_shared_link_metadata. If you're using an SDK, that would be translated into the native type for the response object.
- jczorkmid8 years agoExplorer | Level 4
Thanks Greg. I submitted a request for an exception. Also, thanks for the pointer on the link type. I'm using python and I hadn't immediately noticed it was a different class based on if it was a file or directory.
- Greg-DB8 years ago
Dropbox Community Moderator
jczorkmid I don't actually see a ticket from you. Did you use https://www.dropbox.com/developers/contact and see the green confirmation banner when you submitted it? Would you mind trying again? Thanks, and apologies for the bother.
- Greg-DB8 years ago
Dropbox Community Moderator
Dropbox API v2 now supports listing the contents of a shared link for a folder. This can be accomplished using the same interface as listing a folder in a connected user's account, via the list_folder functionality. To list the contents of a shared link for a folder, you instead provide the shared link URL in the `shared_link` parameter to list_folder:
https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder
If you're using an official SDK, there will also be a corresponding method for this endpoint:
In the .NET SDK that's available as `ListFolderAsync`:
https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesUserRoutes_ListFolderAsync_1.htm
In the Java SDK that's available via `listFolderBuilder` to get a `ListFolderBuilder` on which you can call `ListFolderBuilder.withSharedLink`:
https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/DbxUserFilesRequests.html#listFolderBuilder-java.lang.String-
https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/ListFolderBuilder.html
https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/ListFolderBuilder.html#withSharedLink-com.dropbox.core.v2.files.SharedLink-
In the JavaScript SDK that's available as `filesListFolder`:
https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#filesListFolder__anchor
In the Python SDK that's available as `files_list_folder`:
https://dropbox-sdk-python.readthedocs.io/en/latest/moduledoc.html#dropbox.dropbox.Dropbox.files_list_folder
In the Swift SDK that's available as `listFolder`:
https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/FilesRoutes.html#/s:13SwiftyDropbox11FilesRoutesC10listFolderAA10RpcRequestCyAA0C0C04ListF16ResultSerializerCAH0if5ErrorK0CGSS4path_Sb9recursiveSb16includeMediaInfoSb0O7DeletedSb0O24HasExplicitSharedMembersSb0O14MountedFolderss6UInt32VSg5limittF
In the Objective-C SDK that's available as `listFolder`:
https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESUserAuthRoutes.html#/c:objc(cs)DBFILESUserAuthRoutes(im)listFolder:
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!