chirstius Dropboxer

Comments

  • @"lucasromeiro", The "token from developer account" method is just using the token you can generate for yourself from the developer console. Go to: https://www.dropbox.com/developers/apps Login, if required, select your app. Scroll to the OAuth 2 section and under 'Generated Access Token', click generate: This will link…
  • @"lucasromeiro", I'm not sure there's an easy way around authenticating through the browser, that's really how the OAuth2 workflow needs to run for us. What you might be able to do is generate the authorization link, write it to the console/terminal and ask your user to copy it into a browser on another device. Then prompt…
  • @"lucasromeiro", Once you have the token it's good until it is revoked. If you are only planning on doing this for a single user/account (you) you can probably use a generated token from your developer console (which is just a shortcut to link the app to your Dropbox directly) and avoid the OAuth 2 flow entirely. If you…
  • @"lucasromeiro", That GET request needs to be made from a browser. You can script launching the system browser on your device and pointing it to the generated URL which will make a simple GET request by default. I should have been more clear on that in my previous response. Have you tried just pasting your URL into a…
  • hello @"lucasromeiro", As mentioned in the link you referenced, to begin the OAuth 2 flow you would just make a simple GET request, that should be made via the system browser, to: https://www.dropbox.com/oauth2/authorize And supply the parameters as listed, at a bare minimum your request URL would look like:…
  • @"Andre_LB", Again this appears to be a more generic Android development question and not a Dropbox API specific question. I would suggest you take a good look at the sample Android application included in the Java SDK github repository:…
    in v2 API Comment by chirstius May 2018
  • @"Info V.1", Doing a little more digging into this, if you refer to our v1 docs for the get_events endpoint there is an entry under the notes section that states: * The events sf_team_mount and sf_nonteam_mount will eventually replace sf_team_join and sf_nonteam_join. I'm thinking this is why you're not seeing the…
  • @"Andre_LB", The issue regarding OkHttpClient not being found seems like it is a development environment issue, and not directly related to the Dropbox API. Are you getting errors from gradle or maven? Have you tried updating your project, or forcing a clean build? OkHttp is a dependency of the Dropbox SDK and should be…
    in v2 API Comment by chirstius May 2018
  • Hello @"Ilya_C", I was able to run your method and I got back a successful file listing so I don't think there is an issue with what you have in that method as far as the Dropbox API. Can you share a more complete code example of how you're calling that method and creating the dbx object? Also, can you confirm if you are…
  • Hello @"Ilya_C", I think part of the problem is in this line: using (FileStream fileStream = File.Create(response.Response.Name, (int)files.Length)) The stream returned is not seekable, and I think getting the Length requires a seek operation. Can you try removing that and seeing if things work as expected? Also, you might…
  • Hello @"Tom A.5", There may be a few options for this. Some things for you to try: https://www.dropbox.com/developers/documentation/http/documentation#files-copy_batch Will allow the upload once, copy-many process to possibly be consolidated to fewer calls.…
  • Sorry about that, I think I inverted the relationships. Have you had a non-team member (but Dropbox account) mount the shared folder?
  • Hello @"Andre_LB", I think it would be very helpful for you to post some actual code samples of your Activities/Classes at this point rather than just describing the process. This would help replicate the issue or at least make it easier to potentially identify issues with the authorization flow. Would you be able to…
    in v2 API Comment by chirstius May 2018
  • Hello @"Info V.1", The events you reference are v1 event types, so first I'd like to suggest you look at migrating to the v2 event log endpoints: https://www.dropbox.com/developers/reference/events-migration-guide The event types you mention refer to different actions performed by non-team member actors specifically as…
  • Hello @"maxdiable", Can you verify what version of .NET you are using an if you wouldn't mind please share a full code sample. That would be very helpful trying to perform further troubleshooting on this issue. Thanks! -Chuck
  • @"dochdl" for future reference, the Select-Admin header is covered in our Business Endpoints documentation under "Member file access": https://www.dropbox.com/developers/documentation/http/teams#teams-member-file-access 
  • Glad to hear it, don't hesitate to reach out again if there is anything else you need.
  • Thank you for posting those samples @"amedeomantica" Because your Dropbox Team uses team space and member folders I'd like to make a suggestion. First, make sure you have the latest Java SDK (3.0.7). Then add a call to get the current account information and root namespace: FullAccount account =…
  • @"amedeomantica", Are you able to access other Team Folders as that user? Is it just a single specific folder that is failing or all Team Folders? Also, if you wouldn't mind, can you post a sample of the code you are using to list the Team Folder and a recent error response? Thanks, -Chuck
  • Hello @"PHDev", Can you clarify if you are trying to store the literal Base64 encoding or if your end goal is to upload Base64 and have Dropbox store the resulting image that the Base64 data represents? Base64 conversion is not supported by the upload API endpoints. So if you are trying to store the resulting images, you…
  • Are you certain the member ID you are using to access the team folder actually has access to it? You may need to switch to a different user via asMember(). Can you validate that first? Then we can dig a little deeper... Thanks! -Chuck
  • Hey @"SteveCr", Have you looked over the information in the Oauth guide here: https://www.dropbox.com/developers/reference/oauth-guide You're not required to have a redirect URL, but it will change the Oauth flow for your users (they'll get a code they need to pass to your app). This is typically done for desktop or CLI…
  • Hey @"wwaag76", Would you mind showing the actual code within your methods that are failing? I assume things are erroring out at the call to ListRootFolder()? Can you show the contents of that method? Typically errors that occur with pathing between full access and App Folder access are not honoring the fact that App…
  • Hello @"amedeomantica", Can you clarify if this is a team-linked app, or a user-based app being linked to a team-based account? In either case, I would suggest our namespace reference guide as a resource that may help with resolving this: https://www.dropbox.com/developers/reference/namespace-guide Of specific interest (if…
  • Hello @"bbijals", might I first suggest giving the Dropbox Javascript SDK a look as I think it will simplify much of the boilerplate code required when submitted with xhr's. One way to directly download a file via the SDK might be as follows: dbx = new Dropbox.Dropbox({ accessToken: TOKEN });…
  • Hey @"Josh D.15", I would like to refer you to this response which I hope will clarify this a bit: https://www.dropboxforum.com/t5/API-support/25K-Dropbox-Business-API-Call-Limit-on-Data-Transport/m-p/234426/highlight/true#M12799 Depending on your current plan you may or may not see a warning, but unless you have migrated…
  • @"saravananct143" looking at your code above it seems like you are not adding any content to the body of your POST request. To do this for HttpWebRequest you will need to encode the data, and then add some additional code to send that data after you make the call to GetRequestStream(). There is a good example of this in…
  • Hey @"saravananct143" before we dive into your original issue, or even generating a new token, I'd really like to verify that you were able to revoke your previous token. This way we know we're working from a clean slate and any data accessible via the previous token is protected going forward. Can you confirm? If you're…
  • Does this app have full Dropbox access, or is it within an App Folder? It's possible the path you are providing in code is invalid. For example, if you're app is hosted in an app folder, it will show up as: /Apps/App Name When viewing it via the web or desktop UI. However, within the application, and for all calls to the…
  • I tried it both ways - same file, and two different files. Both seemed to work without issue. Either way, I'm glad you've got it working now. Thanks for sharing the code hopefully someone else might find it valuable. Good luck with the rest of the project! -Chuck