Comments
-
As a security feature, each exact redirect URI does need to be pre-registered. If you don't know the redirect URI ahead of time, one thing you may be able to do instead is to use one static redirect URI but encode the necessary information in the 'state' parameter, and decode it as necessary after the redirect back to your…
-
Yes, you can create a shared link for any file or folder using sharingCreateSharedLinkWithSettings: https://dropbox.github.io/dropbox-sdk-js/Dropbox.html#sharingCreateSharedLinkWithSettings You can retrieve any existing links using sharingListSharedLinks:…
-
If you use the "code" flow without a redirect URI, then yes, the user will have to manually copy and paste the authorization code into the app. Using a redirect URI is recommended though, as shown in the example, as that will automatically pass the authorization code to your app, without the user copying/pasting it…
-
Yes, OAuth 2 access tokens only have one piece. That is, each OAuth 2 access token is just one long string. In your API v1 code, you're storing that via the access_token variable under DROPBOX_PREFS_SECRET. In your API v2 code, you're storing that via the access_token variable under DROPBOX_PREFS_TOKEN. (Part of the…
-
You're attempting to access /authorize by submitting an HTTP request to it via curl like you would for an API call, but /authorize is actually a web page the user should interact with in their browser, and not an API endpoint. You should construct the /authorize URL and then direct the user there in their browser. (Exactly…
-
I used an example Meteor app, and in server/main.js I just used the node library normally: var Dropbox = require('dropbox'); const dbx = new Dropbox({accessToken: "<ACCESS_TOKEN>"}) dbx.filesUpload({path: "/test_207235.txt", contents: "some test data"}) .then(function (response) { console.log(response) }) .catch(function…
-
You're using the same accessKey/secretKey pair for both your app info and access token. These should actually be different pairs of strings. The app key and secret (a.k.a. consumer key and secret) identify your app. They can be found on the app's page on the App Console. The access token key and secret are different…
-
By the way, we did find an issue that could cause a timeout error like that. That should be fixed now. I don't have an update on the progress issue yet.
-
We did find an issue that could cause a timeout like this, and it should be resolved now.
-
Exactly how this works will depend on what SDK and SDK version you were using for API v1, if any. E.g., if you were using the Android Core SDK, you likely have OAuth 2 access tokens. The SDK itself didn't handle access token storage for you, but most developers store them in SharedPreferences. As long as you're using the…
-
The access token is retrieved a few lines later when the user is redirected back to the app after authorizing it here: https://github.com/dropbox/dropbox-sdk-dotnet/blob/master/Examples/SimpleBlogDemo/Controllers/HomeController.cs#L197
-
For using API v2 from .NET, we recommend using the official Dropbox .NET SDK: https://www.dropbox.com/developers/documentation/dotnet The examples show how to handle authorization, e.g., using DropboxOAuth2Helper in SimpleBlogDemo:…
-
If you want to use the HTTPS endpoints directly, that's possible using just curl. Here are some basic examples using curl in PHP: https://stackoverflow.com/documentation/dropbox-api/409/uploading-a-file/1354/uploading-a-file-via-curl-in-php#t=201702211923322665017…
-
Thanks! Based on your code, it looks like you're running this in a Meteor app. I tried it out in a Meteor app, and I wasn't able to reproduce the issue when making an upload code in the 'server' code, but I was when I tried to run it in the 'client' code. Are you running this in the client code? I'm not sure offhand if…
-
Thanks! I'll follow up here once I have an update for you.
-
Dropbox API v2 is stable and ready for use in production. The use of "open unions" as you cited enables us to add additional functionality over time, as the Dropbox product itself grows. The addition of new members to open unions is not a backwards incompatible change. Backwards incompatible changes (such as removing an…
-
When calling with include_deleted=true, you should receive deleted entries for items that can still be restored, but not for entries that have been permanently deleted. The amount of time that the account stores deleted files depends on the account's plan.
-
I'm glad to see you found this already. Yes, some properties are only available on FileMetadata, which is a subclass of Metadata, so you need to cast objects as necessary. There's an example of how you can check for this here:…
-
By "linking" a team to an app, I'm referring to when a team admin goes through the OAuth app authorization flow to authorize an app to connect to their team. You can find more information on the OAuth app authorization flow here: (it's written for apps that link to individual users, but the process is essentially the same…
-
Can you share the steps and code to reproduce this, as well as any error/output you're getting? Thanks in advance!
-
Can you share the full error you're getting for the time out failure? For the progress issue, the expected behavior is float values between 0 and 1, so we'll look into it.
-
Only team members can update the file properties on a file using one of the team's property templates. Non-team members that are members of a shared folder can view the properties for a file they have access to, but they can't update it. Note that this feature is in beta though, so it is subject to change. In any case,…
-
For reference, the sample app has been updated to work with the latest version of the SDK.
-
For reference, the sample app has been updated to work with the latest version of the SDK.
-
For reference, the sample app has been updated to work with the latest version of the SDK.
-
The override issue in 2.0.6 is fixed now in version 3.0.0.
-
The override issue in 2.0.6 is fixed now in version 3.0.0.
-
The override issue in 2.0.6 is fixed now in version 3.0.0.
-
Apologies, no update on this right now.
-
Thanks for following up. Sorry to hear about these building issues, but I'm glad you were able to get working builds. And no problem about the questions, that's what I'm here for! (By the way, I highly recommend putting your project in version control and committing before any significant changes, as it can make…