Comments
-
You can downcast to http://dropbox.github.io/dropbox-sdk-java/api-docs/v2.0.x/com/dropbox/core/v2/DbxFiles.FileMetadata.html, which has a clientModified field. (Of course this only works if the thing you got metadata for is in fact a file. A folder will return DbxFiles.FolderMetadata instead, and deleted items will return…
-
filecontainer = Await response.GetContentAsStreamAsync() "Filecontainer is a string." This doesn't make sense. GetContentAsStreamAsync doesn't return a String. It returns a Stream. You probably want code like this: Dim response = Await dbx.files.BeginDownload(path + "/" + file) Dim responseStream = Await…
-
My pleasure! I'm glad you got things working.
-
/list_folder/continue should return files that have changed since the time you got the cursor. Have you made file changes since obtaining the cursor? Also check if you're passing true or false for the "recursive" field. (Perhaps the file changes you made are to a subfolder, but you're using making a non-recursive call to…
-
The .NET SDK documentation is here: http://dropbox.com/developers/documentation/dotnet. There are links from there to samples, a tutorial, and source code. Feel free to ask specific questions once you've written some code.
-
So what's your question? Does your code do what you want it to? If not, what sort of issue did you run into? Yes, I would suggest using the .NET SDK. I don't understand what you mean by "would you please tell me how api v2 will be use in xamarin." Did you try using the SDK? Did you have trouble?
-
I'm not sure how to help you. It seems like maybe you haven't started writing code yet? https://www.dropbox.com/developers will tell you all about the platform. In particular, I would think you want the .NET SDK, given that you're using Xamarin.
-
I'm not sure I understand your question. Could you share the code you've written so far and where you ran into trouble? I should also point out that the Sync and Datastore APIs https://blogs.dropbox.com/developers/2015/04/deprecating-the-sync-and-datastore-apis/. You might instead want to use the…
-
From your code here, it looks like you launch the Chooser every time viewDidAppear is invoked. Wouldn't that cause the exact loop you describe? (After choosing a file, the Chooser just gets immediately launched again.)
-
Moved to the API forum. Have you read through https://blogs.dropbox.com/developers/2015/08/important-update-your-core-api-app-for-ios-9/ and added dbapi-1 and dbapi-3 to your plist? Can you share some sample code to reproduce the issue?
-
I think that getDelta is roughly what you want: http://dropbox.github.io/dropbox-sdk-java/api-docs/v1.8.x/com/dropbox/core/DbxClient.html#getDelta(java.lang.String). Note that this method is recursive. https://www.dropbox.com/developers/documentation/http#documentation-files-list_folder in API v2 is probably a bit better,…
-
I can't think of a reliable way to figure out the path today. Agreed that it's probably not a great idea to build an app that relies on this (since you're unlikely to be able to get it 100% correct today, and we may end up breaking things later).
-
Unfortunately, we don't have a way to hotlink to a file on dropbox.com, but we'll consider this as a feature request. Things to watch out for if you try to just do "/home/..." is that Dropbox for Business users may have different paths, depending on whether they've linked a work and personal account (and then the path…
-
I assume you're using the Core API and seeing this during auth? If so, no the Dropbox app doesn't need to be installed. If the app is present, a streamlined authorization will happen in the Dropbox app. If it's not present, the authorization will happen in a web view embedded in your app.
-
(Thanks, Mark!) Ben, I assume you're using iOS 9? Take a look at https://blogs.dropbox.com/developers/2015/08/important-update-your-core-api-app-for-ios-9/.
-
That class is meant to be used in the case where there's only a single user being authorized. Are you trying to authorize multiple users? If so, you'll need to use the DropboxAuthManager directly. If you do just want a single user (but want to forget about the user who's already been authorized), you can use unlinkClient.
-
Christian, kudos on getting this working! See https://gist.github.com/smarx/4bd20487ddf37a5942bf for my quick take on this. The main difference in the structure of my code is that I'm using recursion instead of a while loop. This lets me get rid of the threading and semaphore in your code. I think that my approach is the…
-
Just adding on here: if we provided a "content type," we would do so just by mapping file extensions to MIME types (e.g. ".txt" means "text/plain"). So you may as well do that mapping yourself.
-
Do you see any error in the JavaScript console? If this is exactly your code, it looks like you're using the options variable before you actually assign it a value. I would expect you to see an error in the browser console. Try putting the "var options = ..." line above the call to Dropbox.createChooseButton.
-
I think your question is just about how to use the requests library, so this probably isn't the best place to ask for help. That said, here's a simple example of how to read the content from a URL using requests: import requests response = requests.get('http://www.example.com') print(response.content)
-
Were the new file contents identical to the old file contents? If the content is the same, nothing gets changed and no new file is created. See the documentation for WriteMode in https://www.dropbox.com/developers/documentation/http#documentation-files-upload: "In some situations, the conflict behavior is identical: (a) If…
-
Assumptions I'm making... (please correct me if these are wrong): * This is Java code running on Android. (Guessing based on syntax and "Toast.makeText".) * You're using the https://www.dropbox.com/developers-v1/core/sdks/android, probably version 1.6.3. Is an exception being caught? I don't see anywhere in the code that a…
-
I'm passing this along, but I don't think we'll be making this change in API v2. The lack of support for JavaScript's dot-notation syntactic sugar is sort of by design. We used a dot specifically because it's not likely to collide with anything else (because dots are uncommon in JSON dictionary keys).
-
Thanks for the feedback. This should work fine: _.pluck(results, 'match_type[".tag"]')
-
Thanks for the feedback! I think you're specifically talking about JavaScript, right? The dot wasn't meant to indicate that the field is private–clients definitely need to read it. It was meant to be in a namespace that would never cause collisions. A dot seemed like a good way to do that, since it's uncommonly used in a…
-
Cross-linking with http://stackoverflow.com/questions/33765981/ios9-unable-to-complete-login-process-when-using-dropbox-sdk on Stack Overflow, which may be the same question.
-
Gajanan, I'm not sure I understand your question. You shouldn't change anything in the URL... see https://www.dropbox.com/developers/documentation/http#documentation for details about the endpoint.
-
Agreed. The Dropbox API, however, is not a RESTful API.
-
You can omit both the Content-Type header and the body when a method takes no argument. I just tested it: $ curl -v -X POST https://api.dropboxapi.com/2/users/get_current_account -H "Authorization:Bearer <REDACTED>" * Trying 108.160.172.205... * Connected to api.dropboxapi.com (108.160.172.205) port 443 (#0) * TLS 1.2…
-
UI to let the user choose a destination is something you would need to build yourself. I'm not sure there's a good example of using the popup auth driver. I agree that it would be a nice example to have. If you post the code you've written so far and where you got stuck, we might be able to help.