Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
sobharaj m.
11 years agoNew member | Level 1
URL Unauthorized access error while accessing files from dropbox?
we are accessing having a problem in URL we have a file named xyx (1).jpg while passing this to server we are getting response as Unauthorized Access. May I Know how to pass this request to Server?
Here am using DropBox API for Winrt C#.
39 Replies
Replies have been turned off for this discussion
- Steve M.11 years ago
Dropbox Staff
I'm confused.
What's the difference between
DriveUtilities.GenerateSignatureandDriveUtilities.GenerateThumbviewSignature?And why does one piece of code use
item.serverFileIdand the otherpath? (Is the "serverFileId" the path?)And both snippets seem to use
AppConstants.DropBox_GetThumbnailas the base URL, but I thought the second code snippet was supposed to be retrieving the full image (not a thumbnail). - sobharaj m.11 years agoNew member | Level 1
Yes the second one is for getting full image. No need to confuse we used same method but only the name is different here path and item.serverField means name of that particular image. In both cases everything is same except the URL. The url is different for full view image and thumbnail.
- Steve M.11 years ago
Dropbox Staff
What's the value of
AppConstants.DropBox_GetThumbnail? - sobharaj m.11 years agoNew member | Level 1
DropBox_GetThumbnail = "https://api-content.dropbox.com/1/thumbnails/auto{0}"; {0} means we are appending image information here.
- Steve M.11 years ago
Dropbox Staff
Both code snippets use
AppConstants.DropBox_GetThumbnail. So they both seem to be requesting thumbnails. - Steve M.11 years ago
Dropbox Staff
Another issue I noticed: the first code snippet passes
drive.AccessTokenanddrive.RefreshToken. Dropbox doesn't use a refresh token. Presumably you should be passing the access token secret as the second parameter. - sobharaj m.11 years agoNew member | Level 1
Okay. Thanks for your support.
- sobharaj m.11 years agoNew member | Level 1
Hi Actually I sent you wrong code regarding success case.
Here it am sending you again.
WebProvider objWebProvider = new WebProvider(); // path = WebUtility.UrlEncode(path); var uri = DriveUtilities.GenerateSignature( new Uri(string.Format(AppConstants.DropBox_GetMediaItem, path), UriKind.RelativeOrAbsolute), "GET", DropBox_AccessToken, DropBox_AccessTokenSecret); uri = await objWebProvider.GETRequest(uri).ConfigureAwait(false); if (!string.IsNullOrEmpty(uri) && !uri.Equals(AppConstants.Unauthorized)) { DropBoxThumbnail result = JsonConvert.DeserializeObject<DropBoxThumbnail>(uri); if (result != null) url = result.url; } - Steve M.11 years ago
Dropbox Staff
Are you still having trouble, or is your code working now?
- sobharaj m.11 years agoNew member | Level 1
Yes I have trouble in thumbnails.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!