Comments
-
It looks like you're just passing along a native object as the API call parameters, and curl is then applying the multi-part Content-Type. You should send up the parameters as JSON. You can build your parameters as JSON like: $params = json_encode(array( 'paths'=> $folders, 'autorename'=> false, 'force_async'=> false));
-
@"KenEm" You can find the information about this Dropbox feature here: https://help.dropbox.com/files-folders/share/set-link-permissions#disable-downloads
-
Thanks for the information. I just tried this on an Android emulator running API 22 with the built in browser (though it's reporting a different kind of version number: 5.1.1-552941) and that also worked for me. Do you have access to a device running a non-customized API 22? It would be useful to know if it does or doesn't…
-
@"marcoalt" We currently officially support three different installation methods for the Dropbox Objective-C SDK. Specifically: * CocoaPods * Carthage * Manual It sounds like you were initially trying to install it via CocoaPods, is that right? Can you double check you followed the instructions exactly as documented? Also,…
-
[ Cross-linking for reference: https://stackoverflow.com/questions/60534044/dropbox-saver-api-url-as-base64-works-when-upload-1-file-when-upload-multiple-i ] Using the Dropbox Saver with data URIs like this is unfortunately not officially supported, but we'll consider it a feature request.
-
From your screenshots, I see that your team is using the "team space" configuration. By default, API calls will operate only in your private member folder, and not in the team space, so you won't be able to access that "Sample Folder" outside your private member folder by default. You can configure your API calls to…
-
Thanks for the report! It sounds like there may be an incompatibility in some cases with Chrome. I just tried the Dropbox Java SDK's Android sample app as well though, and it worked for me, redirecting back to the sample app without issue. I just tried it with Chrome 80.0.3987.119 in particular. You mentioned you tried it…
-
Can you share the full /oauth2/authorize URL you used to get the authorization code you're exchanging, as well as the redirect URI you're sending with this /oauth2/token call (your 'url' variable in the above code)? Those need to match exactly. Keep in mind that you might have multiple different redirect URIs registered…
-
@"Андрей Г.2" I'm not quite sure I understand your question. Can you elaborate? Thanks in advance!
-
I'm not aware of any current disruption that should be causing that. I'll be happy to help this, but I'll need some more information. Please reply with: * the name and version number of the platform and SDK/library/HTTP client you are using, if any * the steps to reproduce the issue, including relevant code snippet(s) *…
-
Thanks for following up. I'm glad to hear you got this sorted out. And thanks for the feedback! I'll send this along to the team.
-
@"duckladydinh" No, unfortunately there currently isn't a way to download a whole sub-folder from a a shared link for a folder via the API, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. Note that you can download the top-level folder as a zip from the shared…
-
@"quartertone" No, unfortunately I don't have any news on this request.
-
We're not currently experiencing any known service disruption that would cause empty replies from the Dropbox API. Might there be something on your network connection preventing your app from connecting to the Dropbox servers? For example, might there be some firewall, proxy, or caching layer that is either blocking or…
-
I see that you are checking the 'IsComplete' status of the UploadSessionFinishBatchAsync job using UploadSessionFinishBatchCheckAsync, but that will only tell you if the operation is complete overall. It does not indicate whether any particular commit succeeded or not. You should additionally check…
-
@"duckladydinh" I'm not sure I understand your comment. If something isn't working as documented, please share the details so we can look into it for you. For example, you can use the /2/files/list_folder endpoint to list the contents of a folder from a shared link for the folder: curl -X POST…
-
It sounds like your team is set up to use the "team space" configuration, so you shouldn't use the /2/team/team_folder/* endpoints. To create a folder in the team space, you should use the /2/files/create_folder_v2 endpoint. Please refer to the Namespace Guide for information on how to operate in the team space.
-
Yes, I'll follow up here once I have an update on this. I can't promise when that will be though.
-
@"steve-the-bayes" Thanks for letting me know! I've fixed the documentation links in my earlier message.
-
You should send them as POST parameters, encoded using "application/x-www-form-urlencoded", not headers. Here's a basic example I just put together for calling /oauth2/token using curl in PHP: $app_key = "<APP_KEY>"; $app_secret = "<APP_SECRET>"; $headers = array("Authorization: Basic " . base64_encode($app_key . ":" .…
-
When using "Basic" authorization, your "Authorization" header value should start with the string "Basic ". So, that line should look like: "Authorization: Basic " . base64_encode($app_key . ":" . $app_secret), Also, note that the /oauth2/token endpoint is based on the OAuth spec and doesn't work like the other Dropbox API…
-
I see you opened a new thread for this with more information so I'll follow up with you there.
-
In that case I recommend checking the documentation for how to access the URL parameters for the URL from Apache in PHP. Those aren't made by Dropbox so unfortunately I can't provide specific guidance for that. (It sounds like you're making a web app though so do make sure you are using you're using the "code" flow and not…
-
This appears to be a duplicate of this thread, so I'll close it and follow up with you there.
-
Thanks for writing this up! This does seem to be a bug in the SDK. The UploadSessionFinishArg type has a 'contents' field because it's how you supply the data if/when calling filesUploadSessionFinish (not the batch version), where it gets set as the request body, but it's not actually needed or expected…
-
Can you elaborate on what you mean when you say you are "unable to receive code in the redirect URI"? What are you trying, and what isn't working as expected? For using the OAuthResponseType.Code flow, I recommend checking out the SimpleBlogDemo example, which has that implemented here:…
-
When calling /oauth2/token, you can actually pass the app key and secret either as 'application/x-www-form-urlencoded' (not JSON) POST parameters, or in the place of the username and password, respectively, in "HTTP basic authentication", that is, in the "Authorization" header. You can find more information on that in…
-
You can find examples of the information included on the redirect URI after the user authorizes the app in the /oauth2/authorize documentation, under the "Returns" section: https://www.dropbox.com/developers/documentation/http/documentation#oauth2-authorize Specifically, there is a "Sample response" for both the code and…
-
Thanks for confirming! Unfortunately, no, I can't think of a more direct or faster way to query that information.
-
I'm not sure I understand your specific scenario here, but it sounds like you may want to use the /2/sharing/get_folder_metadata endpoint. You could supply the team or shared folder ID as the shared_folder_id, which would give you the 'parent_shared_folder_id' value. You could then call again with that ID to get the…