Greg-DB Dropbox Community Moderator

Comments

  • It looks like you already got some helpful comments there, but I replied as well.
  • That "< Dropbox" is a feature of recent versions of iOS. It's a shortcut back to the previous app after you switch between apps. That's a system feature, so I don't believe we have control over it, but it doesn't indicate that you're still in Dropbox. Regarding the openURL issue, your code looks right. That openURL method…
  • I posted an answer here: https://stackoverflow.com/questions/43661690/how-to-handle-error-in-dropbox-c-sharp-sdk/43667655#43667655
  • If you use BeginGetThumbnail, you'll need to also use EndGetThumbnail. The Begin method fires up an async operation and the End method blocks until it completes. That would look something like this: var asyncResult = this.client.Files.BeginGetThumbnail (path); // ... var thumbnailResult = this.client.Files.EndGetThumbnail…
  • For existing apps that previously used API v1, the developer of the app needs to acknowledge the deprecation of API v1. If they haven't this message will be displayed. The developer of the app should do so by signing in to the account that owns the app and going to the App Console. There will be a banner there with a…
  • Unfortunately, no, it's not possible to configure webhooks for specific actions or paths in particular, but I'll be sure to pass this along as a feature request.
  • The Dropbox API doesn't offer a way to filter files by type on the server like this, but you can implement the filtering client-side.
  • I recommend reading through the readme file for the API v2 Objective-C SDK to get started. That covers the basics of using the SDK. You can also refer to the sample app. The SDK offers methods for listing, downloading, and uploading files, among other operations. The SDK doesn't do syncing automatically for you, but you…
  • To rename any file or folder using the API v2 Objective-C SDK, you should use the move method: https://dropbox.github.io/dropbox-sdk-obj-c/api-docs/latest/Classes/DBFILESUserAuthRoutes.html#/c:objc(cs)DBFILESUserAuthRoutes(im)move:toPath:
  • Webhooks are being sent now, but the service hasn't caught up on the backlog yet, so there will be still some delay.
  • Thanks! I'm sending this request along to the team.
  • We've had our engineers working on this and the good news is the problem has been fixed. The backlog is being processed now. My apologies again for any inconvenience this caused.
  • We're looking into it. Apologies for the inconvenience.
  • Unfortunately I don't have a timeline for if/when that would be implemented, but I'll be sure to pass this along as a feature request.
  • This error message is expected in this case, as the file path you supply can't end with a "/", as yours does (@"/Test1/"). When uploading, you should supply the full path, including file name. You probably meant to supply something like @"/Test1/water.jpg" instead.
  • Hi Amir, any apps still using API v1 SDKs will no longer be able to successfully make API calls. Any further API v1 calls will fail with a 400, which the SDK will translate to its native error type. The linkFromController method in particular may continue working to some extent since that isn't an API call made to the…
  • Did you set include_media_info=true on /2/files/list_folder (not /continue) when you called it to retrieved the cursor initially? If you requested media information, there can be a delay before new entries will be returned (including from /continue), while the media information is being extracted. If not, the entries…
  • Thanks! That's helpful. It looks like you're defining your own updateAccessToken method. That's actually an existing method on DBSession though. You shouldn't define your own. You should call that on your DBSession instance before attempting API calls such as loadMetadata.
  • There's an example of using unlinkAndResetClients in the sample app here. Your usage looks correct though, and the method is working correctly for me. How are you checking if it worked? You generally should just check if [DBClientsManager authorizedClient] is not nil. Also, what version of the SDK do you have installed?…
  • You should certainly be able to use characters like this. I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with: - the steps to reproduce the problem - the name and version of the platform and SDK/library you are using - the full text of the…
  • The API v2 Objective-C SDK works quite a bit differently than the API v1 iOS SDK, so I recommend looking through the readme file for the API v2 SDK first to get started. For example, the API v2 SDK doesn't use delegate methods like the v1 SDK did. It uses response blocks instead, that you set when you call the method. To…
  • 1. I'm not sure I follow. Exactly what functions are called and when is controlled by your app. You may want to step through with a debugger to see what it is doing and how to correct it. 2. You don't have to upload the same amount of data with each call. For example, when you only have less than 1 MB left to upload, you…
  • It sounds like "y4yp61aez2fn8" is the key for an OAuth 1 access token. There should also be a corresponding secret value for the OAuth 1 access token. With those values, you can set the access token using the updateAccessToken method I mentioned ealier. I don't have any pre-written code for this to share though, as this is…
  • This is working properly for me. I'll be happy to help with any issues you're having with the Dropbox API, but I'll need some more information. Please reply with: - the name and version of the platform and SDK/library you are using - the steps to reproduce the issue - the full text of any error or output - the relevant…
  • Unfortunately the Dropbox API just happens to not have the particular functionality you're looking for. I've sent this along as feedback, but I can't promise if or when any of this functionality would be implemented.
  • 2. You can use getSharedLinkMetadata to get the metadata, but that also requires user auth, like getSharedLinkFile. The API unfortunately doesn't offer a way enumerate the contents of a folder via a shared link for the folder.
  • The Dropbox API doesn't support If-Modified-Since/Last-Modifed header functionality. Instead, to check if a file has changed, you can store/check the 'rev' value in the file's metadata. For example, you can call /2/files/get_metadata and store the returned 'rev' value. When you call back later, if the 'rev' value has…
  • 1. The Dropbox API doesn't support creating a shared link for the root path, but I'll be sure to pass this along as a feature request. (In the case of an app folder app, the app folder itself is "root".) 2. Yes, the getSharedLinkFile does require user auth, so it sounds like that won't be a good solution for you.…
  • [Cross-linking for reference: https://stackoverflow.com/questions/43569364/dropbox-url-masking ] Dropbox doesn't offer a way to do this, but I'll be sure to pass this along as a feature request.
  • The share method you're using returns a dict, so you can access the fields like: print(client.share(path)['url']) That uses API v1 though, which is deprecated. You should switch to using API v2. Using API v2, creating a shared linked is accomplished using the sharing_create_shared_link_with_settings method, which returns a…