-
Re: search_v2 API does not work when using id
Anyway, I can not disable the "filename_and_content" option. I only want to search into filename, not content. The request to search_v2: { "query": "screen", "options": { "path": "id:XXXX", "max_results": 1000, "file_status": "active", "filename_only": true, "order_by": "last_modified_time" }, "match_field_options": {…
-
failed to connect to api.dropboxapi.com/10.16.111.13 (port 443)
When I use the official Demo dropbox-sdk-java/examples/android/ I have the following problems Failed to list folder. failed to connect to api.dropboxapi.com/10.16.121.33 (port 443) from /10.16.0.25 (port 46762) after 20000ms I need help. Thank you in advance my sdk version com.dropbox.core:dropbox-core-sdk:3.1.5
-
Change app key and secret
Hi, I would like to change my app secret for security reasons ASAP and couldn't find how to do it, I would really appriciate your help here! :) ) Have a great day.
-
search_v2 API does not work when using id
Hi , The specification of search_v2 api(link) is written as follows. so I tried to search by id. path String(pattern="(/(.|[\r\n]):*)?|id:.*|(ns:[0-9]+(/.*)?)")? Scopes the search to a path in the user's Dropbox. Searches the entire Dropbox if not specified. This field is optional. But, When send a request with the id on…
-
How to access Dropbox file by its ID
Hello! My goal is to create a link to my Dropbox file only for myself and save it in my note-taking app. I have the ID of this file. How does the link look like? The reason is not to share files but save them independently of their names. So to have the possibility to move them and rename inside Dropbox, but still have…
-
Token Confusion
So I am connecting to PowerBi using the token. When I use the token created at: https://dropbox.github.io/dropbox-api-v2-explorer/#files_download with the "Get Token" function inside my PowerBI call it works great. When I put in the access token generated from my App…
-
Error to send larger file under python
Hi Dropbox Team, i'm using a script to send larger files (more 1 GB) but i have an error : Script i use : import dropbox, sys, os dbx = dropbox.Dropbox('MY KEY') file_path = 'My local file_path' f = open(file_path, "rb") file_size = os.path.getsize(file_path) dest_path = 'My Dropbox dest_path' CHUNK_SIZE = 4 * 1024 * 1024…
-
Downloading in the background in iOS (Swift)
Hello, I'm using file download from Dropbox in my app. It works fine when app is active, but if my app goes into the background the download stops. How can I solve it? I use this code to download: private let client = DropboxClientsManager.authorizedClient func downloadFile(_ file: TrackModelProtocol?, callback: @escaping…
-
Download API resume
Hello, I daily need to download a file into iOS from Dropbox using API. The file is ~1GB. Whether the screen saver occurs, or under some other conditions (incoming calls), then the download is aborted, I can restart it, but not resume it from where it left. It is quite frustrating since it happens frequently. Is there a…
-
Bypass Dropbox app when logging in
I am writing an app for a company that will be using their own Dropbox account to save the apps data. When their employees install my app on their phone, it will ask them to log in to Dropbox. Currently, if they have the Dropbox app on their phone, it opens the Dropbox app and allows them to sign in. However, I don't want…
-
Dropbox link to moodle, login error 400
-
API to get content hash of shared file link
Hi. Is there an API endpoint to get the content hash of a file received as a shared link? Where the shared link is to a folder, it's possible with: sharing/get_shared_link_metadata { "url": "https://www.dropbox.com/s/..." } then files/list_folder { shared_link: { "url": "https://www.dropbox.com/s/..." }, path:…
-
Creating Team Folder via Python SDK
I'm trying to create team folders on a business account through the python SDK. when I run the following code: dbx = dropbox.DropboxTeam(access_token).as_admin(team_member_id) dbx.files_create_folder_v2('/test_folder') I get an error stating: CreateFolderError('path', WriteError('no_write_permission', None))) I have given…
-
Performance of Dropbox getCurrentAccount
I'm running one of the Dropbox samples and getting very slow (>30 seconds) response on a call to getCurrentAccount(). The code looks like this: ... DbxRequestConfig config = new DbxRequestConfig(APPNAME); client = new DbxClientV2(config, ACCESS_TOKEN); FullAccount account = client.users().getCurrentAccount(); ... In our…
-
Error in call to API function "files/list_folder": request body: could not decode input as JSON
Good morning, I do this request with Arduino: client.print(String("POST /2/files/list_folder HTTP/1.1\r\n") + "Host: api.dropboxapi.com" + "User-Agent: ESP8266/Arduino_YAGI\r\n" + "Authorization: Bearer " + (String)my_token +"\r\n" + "Accept: */*"+ "Content-Type: application/json" + "Content-Length: 33" + "\r\n" + "\r\n" +…
-
How to implement downloading files in the background for iOS? (Swift)
Hello, I'm using file download from Dropbox in my app. It works fine when app is active, but if my app goes into the background the download stops. How can I fix it? I use this code to download: private let client = DropboxClientsManager.authorizedClient func downloadFile(_ file: TrackModelProtocol?, callback: @escaping ()…
-
iOS Document Picker greyed out
https://developer.apple.com/documentation/uikit/view_controllers/providing_access_to_directories let documentPicker = UIDocumentPickerViewController(documentTypes: [kUTTypeFolder as String], in: .open) documentPicker.delegate = self present(documentPicker, animated: true, completion: nil) I cannot select Dropbox (or Google…
-
dropbox team - get folder call not working (https://api.dropboxapi.com/2/team/team_folder/list)
Hello! I have checked the documentaion and try to implement the get team folders call https://api.dropboxapi.com/2/team/team_folder/list, however I am not getting any errors but not getting folder list too. in respopnse I got just this folder name "Your team's shared workspace", I have many folders in my dropbox team…
-
Add MetaData to Folder/File in App Directory
How can I add file/folder meta data for an App Folder app via the API. I am getting this error: Error in call to API function "file_properties/templates/add_for_user": Your API app is an "App Folder" app. It is not allowed to access this API function Error in call to API function "file_properties/templates/add_for_team":…
-
504 when reading data
* Operating System and version: iOS 14.1 * Browser Name and version: Safari 14.1 One of my users encountered a problem when using dropbox from my app from an iPhone: https://github.com/johannesjo/super-productivity/issues/645 This is most likely the response to a request to: https://content.dropboxapi.com/2/files/download
-
python SDK error
similar problem here My code #!/usr/bin/env python import dropbox print(dropbox.__version__) dbx = dropbox.Dropbox("my token here") dbx.users_get_current_account() output $ ./dbox.py 7.3.1 Traceback (most recent call last): File "./dbox.py", line 5, in <module> dbx.users_get_current_account() File…
-
bad error 400 on every API request!
Hi, I´ve tired to implement the API upload and download in M5STack (Arduino). On every request I get an bad error 400! I´ve copied the header from API explorer, where all works fine! Can anyone help please what does it mean, and what is the problem!? my header and response: POST /2/files/download Host:…
-
NetworkOnMainThreadException - connecting to Dropbox account
I followed the tutorial on file uploading from the Dropbox website here: https://www.dropbox.com/developers/documentation/java#tutorial But I am having problems when running my code. Here is my error: W/System.err: android.os.NetworkOnMainThreadException W/System.err: at…
-
User apps cannot request team scopes.
There seems a bug in the scope API permissions. We need to add the team API scope and each time it says - "User apps cannot request team scopes." Already have the business account and there is no way to create the team apps from developer console.
-
Dropbox oAuth2 auth process fails with 400 Bad Request when call /oauth2/token
I have got the problem with my app. It worked fine for long time and now somethign happend. I can not understand what is wrong here. The problem is with oauth2 auth process. The first step works fine. I call https://www.dropbox.com/oauth2/authorize with my client_id, redirect_url (it is registered in the app). User…
-
Continuously getting 429 error when calling /list_folder/continue
The following request continously get 429 error though retried after a long time ( > 300 seconds) . I also found that it takes 30 seocnds to get response after requested. What's going on ? curl -v -X POST https://api.dropboxapi.com/2/files/list_folder/continue \ > --header "Authorization: Bearer <access_token>" \ >…
-
I am getting error in uploading files in dropbox
Hi , From my c# code I am uploading files in dropbox using dropbox.api.dll but getting error "Error: Exception has been thrown by the target of an education." Anyone can help on this how to resolve this error. Thankss, Gyanendra
-
Can't build for iOS Simulator when SDK installed with Carthage
Apple broke my Dropbox SDK installation in their latest XCODE 12.0.1. I was using the Cocoa Pods method ever since Dropbox V2 came out. So I decided to redo my project using Carthage. It works fine when building for an iOS device, but fails when building for the simulator. I don't know how Cocoa Pods handled it. All I know…
-
Download a file inside a Shared Team Folder using the Python SDK
I'm trying to download files inside a shared Dropbox Team Folder. I have a list of shared folders in my account and I have the preview URLs saved for all the folders. Using the preview URLs, I am able to recursively get a list of all files within the directory as follows: link = dropbox.files.SharedLink(url=shared) entries…
-
Create a Folder in a Team's Shared WorkSpace
Hi, please can you help. I am using the following post to try to create a folder inside the "Scanned Docs" Folder shown below URL = https://api.dropboxapi.com/2/files/create_folder_v2 Contents of my Post = --header "Authorization: Bearer <<dropbox_token>>" \ --header "Dropbox-API-Select-Admin: <<TEAM_MEMBER_ID>>" \…