Comments
-
I see you're referring to using the /2/files/list_folder/get_latest_cursor endpoint. That endpoint allows you to get a cursor for listing a folder. That allows you to specify either a path in the connected account, or a shared link for a folder and optionally a path relative to that folder. The structure of your JSON looks…
-
The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. While it is technically possible to always connect to just one account for all users, we do not officially support this, for various technical and security reasons. If you just want to be…
-
Thanks! That's helpful. We'll check on that.
-
@"1575475" Apologies for the lack of clarity here. For team folders in particular, you need to add members via groups; you can't add them individually. I'll ask the team to see if we can clarify this in the documentation and error response. For example, you would set the "members" parameter like:…
-
That particular error shouldn't indicate an API rate limit. I also just tried making repeated /2/sharing/get_shared_link_metadata calls with a correct password and this didn't reproduce for me. Can you double check you have the correct password in this case? If so, would you be able to share a sample that we can check on…
-
@"Ragindev" As Здравко noted, make sure you implement both /2/files/list_folder and /2/files/list_folder/continue. You're not guaranteed to get everything back in one call. Check out the linked documentation for more information. Also, if you're using a team account, note that the team may have recently switched to the…
-
@"1575475" As Здравко said, it would be helpful to see the actual request to troubleshoot this further. From your description though, are you trying to call /2/sharing/share_folder on the team folder itself, which you created using /2/team/team_folder/create? You don't need to "share" a team folder, since it is already…
-
The app key and app secret, also known as client ID and secret, identify the app itself, not any particular account, and do not themselves enable access to any account. The OAuth app authorization flow is a way for arbitrary end-users to allow apps to connect to their accounts. It is not possible to fully automate the…
-
1. As you found, there is a specific limit for uploads to some Dropbox Business team plans of "1 billion API calls/month" for "data transport" . This is a limit on the number of upload API calls that can be made per team per month, for certain Dropbox Business team plans only. This only applies to upload calls, and not…
-
@"purringpigeon" Здравко is correct, you should use the "mode" option to control this behavior. That's still available in the latest version of the SDK, as seen here. I recommend using Xcode's autocomplete feature to automatically template out the parameters.
-
@"Omri1984" It sounds like there's an issue with the credentials you're supplying, so trying the call outside of the SDK as Здравко suggested should be a useful test.
-
While the Dropbox API doesn't offer a way to upload an entire folder including its contents at once, you can create a folder using /2/files/create_folder_v2, and as Здравко noted, you can upload files using /2/files/upload.
-
It's not possible to make new access tokens long-lived; for long-term access without manually re-authorizing the app, you would use refresh tokens. Refresh tokens don't expire automatically and can be used to programmatically retrieve new short-lived access tokens whenever needed. For examples of implementing this with the…
-
Dropbox está en proceso de cambiar para emitir solo tokens de acceso de corta duración (y tokens de actualización opcionales) en lugar de tokens de acceso de larga duración. Puede encontrar más información sobre esta migración aquí . Sin embargo, las aplicaciones aún pueden obtener acceso a largo plazo solicitando acceso…
-
It looks like that's an error from CocoaPods itself so I can't really offer support for that, but it looks like there's a post about that error here.
-
The code you pass to getAccessTokenFromCode is an "authorization code". Authorization codes are only valid for a short period time, and can each only be used once. Once you use the authorization code to retrieve an access token and optionally a refresh token, you can no longer use that authorization code again. You should…
-
Try adding this error handling to the getAccessTokenFromCode call to get a more specific error message from the error response: .catch(function(error) { console.error(error.status); console.error(error.error); });
-
@"1575475" It looks like you have the right idea. And for reference, here's a curl example of calling /2/sharing/share_folder with the 'Dropbox-Api-Select-Admin' header specified: (built using the API v2 Explorer) curl -X POST https://api.dropboxapi.com/2/sharing/share_folder \ --header 'Authorization: Bearer…
-
@"1575475" To confirm, I concur with that Здравко has helpfully shared here. The sharing/add_folder_member endpoint requires that an access token is sent as a "Bearer" token in the "Authorization" header, but it looks like your app is prompting for and sending a username and password as "Basic" authorization instead, which…
-
Yes, I tried the code you shared, plugging in valid refresh token, etc. values, and it worked for me. Please review the list in my previous message for reasons why that would fail for you. Check and update your values as necessary to make sure you're providing correct and valid refresh token, etc. credentials.
-
Yes, you can upload files to Dropbox using the Dropbox API /2/files/upload endpoint (or see that documentation for information on large files) and /2/sharing/create_shared_link_with_settings to create shared links. The documentation linked there has example code for calling these endpoints using curl in the shell. You can…
-
Thanks for following up. I'm glad to hear you got this working. And no, there aren't options for making customizations like those. All of the available options are listed in the documentation here.
-
The first way looks correct, and that code is working for me when I supply valid credentials. Make sure you're supplying the correct and valid values. For example, make sure: * the refresh token is exactly as originally provided by Dropbox * the refresh token hasn't been revoked by the app or user * the client ID and…
-
Thanks for the note. It looks like that was caught by the spam filter for some reason. I'll recover it and follow up with you there.
-
You would need to implement and use the OAuth app authorization flow in order to request and be approved for production status. Note that production status is only required for apps that need to be connected to more than 50 different Dropbox accounts, and without the OAuth flow there isn't a way to connect an app to more…
-
@"Jay P" Since you are getting the "invalid_root" error, it seems you are already able to set the "Dropbox-API-Path-Root" header, but aren't supplying the correct value. Please refer to the Team Files Guide for information on how to retrieve the relevant value(s). If that's still not working for you, please share the steps…
-
Thanks for following up. To clarify though, can you show me what you're seeing exactly when you say "but the user has no access to it"? I'll need to make sure I understand exactly what result you're seeing and where to make sure I can reproduce the same thing and investigate this.
-
@"Jay P" I can't offer support for Claris Connect itself, so I recommend referring to the documentation or support resources for Claris Connect. If Claris Connect doesn't already offer the ability to set the "Dropbox-API-Path-Root" header (or arbitrary headers such that you can specify "Dropbox-API-Path-Root"), the…
-
No, the Dropbox API doesn't offer the ability to access only specific cell data from an Excel file like that, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
-
Whenever you get an error like this 400 error response, be sure to print out the response body as it will generally contain a more useful error message. What does it contain in this case? Looking at your code though, I see you're attempting the step where you call /oauth2/token with the existing refresh token to get a new…