Take Your Search Game to the Next Level with Dropbox Dash 🚀✨ Curious how it works? Ask us here!
API
14 TopicsMobile App Integration Just For Displaying Files
Hello, I have files (image, video, pdf, msoffice files etc.) that I need to submit to the approval of more than one customer. Then I want to show the files in the folder in my dropbox account according to the customer who has logged in to a mobile application developed by myself. My customer will only view the files and give approval to some of them. I want to get the name of the files he approves and delete the rest from my account in the folder belonging to the customer. Is there any alternative to connect to my account with oauth2 - refresh token to do all this? If I can only do it with oauth2 and refresh token, can you help me by giving details about it. Thank you.Can't Find Files in Ruby dropbox_api
Hi folks. I have an API issue here. I'm using the Ruby gem dropbox_api. I've registered a Dropbox project for a folder in my Dropbox root path. I can't seem to list the files inside that root. Full permissions set auth token is working fine I can get my account using this token There are two files in this project root folder, but it's reporting no files in there at all I simply cannot find any files nor folders at all, and I don't know why. The gem's Issues on github don't show any issues that are related. So I'm assuming the gem is working properly, with nearly 4 million downloads. I'm assuming I'm doing something wrong. I've triple checked all this and even Gemini 2.0 has said it has nothing more to suggest other than post in here. That's pretty solid. So anybody with any insight, please tell me what you want to see as I can't get past any of this. CheersSolved125Views0likes11Comments/team_folder/createで作成されたフォルダの共有化設定について
お世話になります。 /team_folder/createで作成した頂点レベルのチームフォルダの共有化設定の方法について質問があります。 現在「Dropbox API Explorer」で検証中なのですが、/team_folder/createで作成したフォルダを共有化できず困っています。 ルートレベルであれば「User Endpoints」の「add_folder_member」メンバーで可能あると認識しています。 その際必要なshared_folder_idは「list_folder」や「get_metadata」で取得可能とは承知しています。 ただ、頂点レベルのチームフォルダに対して「list_folder」や「get_metadata」をしても下記のような応答が返ってきます。 { "error_summary": "path/not_found/", "error": { ".tag": "path", "path": { ".tag": "not_found" } } } また、/team_folder/createの応答は下記のとおりです。 {"team_folder_id": "hogeid", "name": "hogename", "status": {".tag": "active"}, "is_team_shared_dropbox": false, "sync_setting": {".tag": "default"}, "content_sync_settings": []} APIで共有化する方法をご教授ください。 よろしくお願いします。Solved114Views0likes5Commentscan't get path_lower and path_display from file metadata
def get_file_metadata(self, file_path: str): """ Retrieves the metadata of a file in Dropbox. """ try: metadata = self.dbx_team.as_admin(self.admin_id).files_get_metadata(file_path) return metadata except Exception as e: print(f"Error retrieving file metadata for {file_path}: {e}") return None # return value JSON serialized {'size': 806571, 'preview_url': None, 'sharing_info': {'modified_by': '****', 'read_only': False, 'parent_shared_folder_id': '****'}, 'client_modified': '2022-01-10T13:45:52', 'file_lock_info': None, 'is_downloadable': True, 'rev': '****', 'name': '_file_name_.pdf', 'media_info': None, 'id': 'id:****', 'property_groups': None, 'content_hash': '****', 'export_info': None, 'path_display': None, 'parent_shared_folder_id': '****', 'server_modified': '2024-01-16T20:15:15', 'symlink_info': None, 'path_lower': None, 'has_explicit_shared_members': None} Above, you can see the example code and the return value. I'm trying to get the file metadata and read path_display, but the field is always empty. Is this an expected behavior?Using the DropBox API to host files for a public website (.net 9 Blazor)
My client has 100,000s of images stored in dropbox. The goal is to have some database information displayed alongside any one of the images. From what I understand, I would need need to use a service account or OAuth2 so that the visiting user never knows anything about the file location and the only access is via the owners dropbox authority via the app. I have tried to follow the online instructions but they are varied and change from site to site and over the years. My first step was to load this url - https://www.dropbox.com/oauth2/authorize?client_id=&token_access_type=offline&response_type=code This returned a Code. I placed this code the below .net 9 Blazor app but I cannot get past Bad Request refreshToken = the code I got from the above? public async Task<string> RefreshAccessTokenAsync(string refreshToken) { var client = _httpClientFactory.CreateClient(); var request = new HttpRequestMessage(HttpMethod.Post, "https://api.dropbox.com/oauth2/token") { Content = new FormUrlEncodedContent(new Dictionary<string, string> { { "grant_type", "refresh_token" }, { "refresh_token", refreshToken }, { "client_id", "xxxx" }, { "client_secret", "xxxx" } }) }; var response = await client.SendAsync(request); response.EnsureSuccessStatusCode(); var json = await response.Content.ReadAsStringAsync(); var tokenResponse = JsonSerializer.Deserialize<JsonElement>(json); return tokenResponse.GetProperty("access_token").GetString(); } Are there any step by step examples that work to do the above in 2025? I'm really banging my head against the wall here.Save URL Endpoint for Public Folders via API
When I use the files/save_url API endpoint and enter the URL of a public folder, I get an invalid_url error. I am assuming this is because this endpoint only works on files, not folders, is that correct? Or is the issue with public links, since this folder wasn't shared with me via Dropbox and doesn't exist in my Dropbox account? Is there an option to save a folder and its subfolders/files via the API? My intent is for this to have the same effect as a user clicking the "Copy to Dropbox" button that appears when viewing a public Dropbox folder. Thanks in advance!122Views0likes9CommentsList all files recursively inside a shared folder using the dropbox node sdk
Hi, trying to list all files recursively inside a folder shared with my account by another account through the Node SDK. The folder is inside Shared -> Folders. Tried the following methods but none of them give me a list of files: sharingListFolders (just returns the folder object) sharingListSharedLinks sharingGetSharedLinkMetadata sharingListReceivedFiles sharingListMountableFolders Is there a method that does what I want?Getting the files (svgs and images) in a public Dropbox folder
I have a public Dropbox folder that would have a bunch of files in it (the user can paste their own public link). In that folder, I want to be able to get all the files that are there; specifically images. I would like to get their names, links, thumbnails etc and then have the user download them. For now, I would just like to see what files are in a folder. Any help on how I can achieve this would be greatly appreciated. I am using the Javascript SDK.