Greg-DB Dropbox Community Moderator

Comments

  • Thanks! That may have just been a transient issue on our side. Can you try once more now? Please share the X-Dropbox-Request-Id again if you still get a 500.
  • You can cast that error as NSError to access the specific parts of the error information, such as: case .clientError(let clientError as NSError): print("ClientError code: \(clientError.code)") print("ClientError domain: \(clientError.domain)")
  • Can you include the full request and response for that? Please do include the response headers so we can look into it.
  • Thanks for the post! This is expected, media information won't be returned for all media types. With API v2, you should use the file extension in place of the mime type. I'll be sure to pass this along as feedback though.
  • I suspect the issue is that you're missing the "Content-Type" header. It should be "Content-Type: application/x-www-form-urlencoded". Try that and let me know if it doesn't help.
  • It looks like you have an extra redirect in the flow you have implemented. Specifically, you shouldn't be doing step 3. You should only direct the user to /oauth2/authorize once. It appears your app is directing them again a second time, including the extra 'code' parameter the second time. This blog post may be helpful:…
  • Once you've set the access token in the session, and retrieved a client with that session, as above, you can use that client to make calls. The tutorial covers the basic of using a client to make calls. For example, to list a folder: https://www.dropbox.com/developers-v1/core/start/ios#listing What part specifically isn't…
  • Can you elaborate on what information for the root folder you're using from API v1? API v2 doesn't support the root folder on /2/files/get_metadata. If you need to list the contents of the root folder, you should call /2/files/list_folder[/continue] with "" as the path:…
  • Thanks for following up. In that case, returning an HTML success page like that is the best solution. Note that we don't recommend using an embedded web view, as the Google Sign In flow won't work with that in the future: https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html
  • I don't see anything clearly wrong with your request. To help troubleshoot this, can you share the full/raw request and response? (Just be sure to redact your app secret.) Also, this blog post may be helpful: https://blogs.dropbox.com/developers/2013/07/using-oauth-2-0-with-the-core-api/
  • That's correct, a Dropbox API access token doesn't expire by itself, but it can be revoked at any time, by either the user or app. That being the case, your app should store and re-use the access token for a user. What you can do with the final state of the browser in the app authorization flow depends on exactly how you…
  • Apologies for the confusion! This is actually referring to the /2/team/properties/template/add route. You can find the documentation for that in the "Business Endpoints" documentation: https://www.dropbox.com/developers/documentation/http/teams#team-properties-template-add I'll ask the team to clarify this in the…
  • When using sharing_add_folder_member, you specify the people to invite via the 'members' parameter, which expects a list of AddMember. (Apologies the type isn't more clearly shown there. We'll make a note of that.) So, you can invite someone to a shared folder using the Python SDK like this: member_selector =…
  • No, unfortunately we don't have anything pre-built like that.
  • Yes, that would be the only safe way to do it.
  • No, the Dropbox API doesn't automatically expiring tokens, but I'll be sure to pass this along as a feature request. You can revoke any token on demand though, using authTokenRevoke. Also, note that the API was designed with the intention that each user would link their own Dropbox account, in order to interact with their…
  • Thanks for the reports! I'll send this over to the right people here to look into it.
  • API v2 does offer much more granular errors, but you can use as much or as little of that granularity in your app as you want. For instance, this example only does high level handling of any DbxException: Wheres this example distinguishes between CreateSharedLinkWithSettingsErrorException and DbxException: You can drill…
  • I'm not sure I follow. Can you share the full error/output you're getting? Also, to clarify, you are entering the values in updateAccessToken:@"" accessTokenSecret:@"" forUserId:@"" and are just redacting them for the forum, correct? You should, as the access token is sensitive, but I want to make sure you do have the…
  • Thanks for the report. I can't seem to reproduce this though. Your code looks correct and is working for me. Is there anything on your network connection that may be interfering? For example, any anti-virus, proxy, firewall, or other security software. Or, is your network connection itself unreliable?
  • Each of the endpoints uses one of a few formats, indicated in the "endpoint format" section of the documentation for the endpoint. For example, /2/files/get_metadata uses the RPC format and /2/files/download uses the Content-download format. That Request and response formats section explains how each format works.
  • The Dropbox API v2 .NET SDK doesn't officially support Unity unfortunately, so I'm afraid I can't offer a good solution here. I'll send this along as a feature request for Unity support to the team, but I can't make any promises as to if or when that would be implemented.
  • Unfortunately, the Dropbox API doesn't offer a way to export an event history like this, but I'll be sure to pass this along as a feature request.
  • [Cross-linking for reference: https://stackoverflow.com/questions/43412871/upload-selected-file-from-dropbox-to-amazon-s3-using-javascript ] It sounds like you already have the Dropbox part of this working, so I don't think I can be of much use here. Make sure you're using "direct" links and not "preview" links for this…
  • As far as I can tell, the only difference between the two errors is the redaction, so I don't have any new insight to offer here.
  • We don't offer a way to "deep link" to any particular file or folder, while accomodating for different folder structures across accounts, but I'll be sure to pass this along as a feature request. You can programmatically create a shared link while still enforcing "team only" access control though. To do so, you'd…
  • Hi Michael, it looks like the Dropbox part of this is working correctly. The result.entries value is an NSArray of DBFILESMetadata, which you can use however you like in your app. For example, you can iterate over that to get the name or pathDisplay of each item, and use those values to construct the UITableViewCells. The…
  • There doesn't seem to be any Dropbox functionality in your code, so I'm afraid I can't offer any help. This may be better suited on a general web development forum or StackOverflow.
  • Thanks! In that case, they won't be able to directly interact with each other, since each one is confined to its own app folder. The user could copy/move files between the two, but that would be a manual process via dropbox.com or a Dropbox client. And yes, if you instead used a full Dropbox app, it would have access to…
  • Once you've set the access token, you can get a DBRestClient using DBRestClient.initWithSession. From there, you use the client normally: https://www.dropbox.com/developers-v1/core/start/ios