cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API v2 equivalent of /1/metadata/link functionality is required

API v2 equivalent of /1/metadata/link functionality is required

tim
Explorer | Level 4

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 don't know how /1/metadata/link got made in the first place. 

 

If you need stats, a more detailed request or whatever, please let me know.

June 28 is rapidly approaching and us native mobile developers need LOTS of lead time. Even if I could develop the API v2 version in a heartbeat, fastest release time is almost a week in my world.

15 Replies 15

Greg-DB
Dropbox Staff

@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.

jczorkmid
Explorer | 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-DB
Dropbox Staff

@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.

jczorkmid
Explorer | Level 4

@Greg-DB I just now saw this comment from you. Since it had continued to work I figured I was in the clear. Whoops.

 

I filled out the form again, and I did see the green banner for sure this time.

Greg-DB
Dropbox Staff

@jczorkmid No problem, I see your ticket now, so we'll follow up there. Thanks!

Greg-DB
Dropbox Staff
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_ListFol...


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/DbxUserFilesReq...

https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/ListFolderBuild...

https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/com/dropbox/core/v2/files/ListFolderBuild...


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_lis...


In the Swift SDK that's available as `listFolder`:

https://dropbox.github.io/SwiftyDropbox/api-docs/latest/Classes/FilesRoutes.html#/s:13SwiftyDropbox1...


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:ob...:
Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    jczorkmid Explorer | Level 4
What do Dropbox user levels mean?