Здравко Legendary | Level 20

Comments

  • @"CySDeveloper" wrote:It is a scopedapp/appfolder (which is all I need). ..., as i always connect with full user rights. ... 🤔 The above are mutually exclusive. You are restricted to a single folder, something not applied to the corresponding user (with full rights). @"CySDeveloper" wrote:... So i believe there must be a…
  • @"CySDeveloper" wrote:... If i keep the accesstoken/refreshtoken then i will have full access like the user, whereas I have asked them to accept my application with a specific set of minimized rights.... Not exactly. It depends on what kind of rights were given to the particular application. If the rights are to the…
  • Hi @"CySDeveloper", To identify particular account you have to keep account associated access/refresh token in advance and use the access token. That's it. Take a look on following example: https://github.com/dropbox/mdwebhook/blob/1b32d5aec51019eb698905345a21af46e0d4be8e/app.py#L66 Hope this gives direction.
  • Hi @"AdnanL", What is showing the log performed on previous line? 🤔
  • Hi @"Boo S", To get out of beta testing, you have to turn your early releases off and reinstall the latest stable release and nothing else! Shouldn't even do any change to your Dropbox folder position by hand (something you have done 🤷). If you want to change the place where Dropbox resides on, you should perform this…
  • Hi @"af11", At present all access tokens expire after 4 hours. In your example you are relying on access token only without refresh token! If you want prolong your access without additional user interaction, code has to query 'offline' token type and you should care for the 'refresh_token' within result too, aside of…
  • Hi @"dreamuser098", To be honest I'm not sure what is the exact problem. 'trusted.gpg' still work, despite being deprecated. Most probably this will stay so for the ongoing stable release. Of course, Dropbox is waiting for the application work stop completely and after that to do something, as always.…
  • Thanks @"Greg-DB", It's not exactly missing URL encoding, but you drive my to right direction and I found out what's wrong. Since I have used non ASCII symbols in the file name this seems confuses the function. I have no idea why? There is an easy workaround: I just stripped filename in the link; the name isn't mandatory…
  • Waww🤦🤫... that's something really stupid from my side. But the issue is still there. 🤯 Just the response changes to "Conflict" with body: {"error_summary": "not_found/", "error": {".tag": "not_found"}} Despite the values are correct. I just checked all them once again. 🤔 Using the same values I can download a thumbnail of…
  • @"Greg-DB" wrote:... it looks like that failure is due to an invalid app key and/or secret value, so please double check your values. ... Ok, Might be, but there is no reliable way I check it. The following is the way I use to get authentication values. I repeated the test with the same result. curl -s -S -o ~/dump.txt -D…
  • @"Greg-DB" wrote:... @"Здравко"You mentioned you're getting an "Internal Server Error" on some piece of functionality. Can you share the details so we can look into it? Thanks in advance! Hi @"Greg-DB", Sure, I can. In 2/files/get_thumbnail_v2 description can be seen that connection to this end point can be authenticated…
  • @"FoxyLoxy" wrote: ...Is there a way to directly access the thumbnail that Dropbox generates for each file via http? If not, is there a suggested/recommended approach to convert PDF to an image format and use that for a thumbnail? ... Hi @"FoxyLoxy", Supported way to get a thumbnail image from wide range of file types is…
  • You are not mandated to use curl exactly! This tool is convenient to demonstrate many types of query and useful on shell scripting. It's very useful for communication debugging. On "regular" programing, more "typical" languages are usually in use. As I said above few SDK for such languages exist fully supported (some more…
  • @"AlecF" wrote:... Which brings me to another question, what is the format of the timestamp string ? ... Take a look on 2/sharing/create_shared_link_with_settings (in parameters section): ... settings SharedLinkSettings? The requested settings for the newly created shared link. This field is optional.SharedLinkSettings…
  • @"studio_jhh" wrote:... Especially since the bad file check website isn't working any longer. ... Take in mind when you check such thing online, only possible issues related to downloading files would be spotted on, not in opposite direction (upload, like in your case). In your case "bad file check website" wouldn't have…
  • Hi @"infofeedback", Take a look on 2/files/create_folder_v2, 2/files/create_folder_batch, and 2/files/create_folder_batch/check for folder creation. Also take a look on 2/sharing/create_shared_link_with_settings and 2/files/get_temporary_link for different link types creation, providing access to the content. There are end…
  • Hi @"studio_jhh", As in many other cases, Dropbox just puts some common message for wide space of possible issues. 🙂 In you particular case the issue isn't wrong symbol as such, but blank symbol at the end (the same would be if it was ta the beginning). Take a look on the folder name Swimming Pool. Is it "Swimming Pool" or…
  • Hi @"pii_dee", Using rules pointed in the solution above, you can list folder(s) you want and receive files list there together with all accessible files attributes. Now you can reorder and filter all entries in received list according rules you want. Finally go further and download selected subset of the files list…
  • Hi @"AlecF", To find the function you are looking for, take a look here. 😉 Hope this helps.
  • You can use WebRequest class from the core. Example for POST request can be seen here. You should format your request according the Dropbox documentation referred above. Hope this helps.
  • Hi @"DavidThielen", Using some SDK (including .NET) is for convenience only. You are not obligated to use it! Only mandatory thing to use is API. It's the only way to "talk" to Dropbox server. You can do that using some SDK or directly drive web transactions to corresponding access point by yourself. The choice is yours.…
  • @"justindaw" wrote:... You can see that in the file dropbox returns it is appending a few bytes at the front. ... 🙂 Not only at the front, for sure! There are 2 bytes at the end too, at least. May be some more inside. 34 30 30 30 0d 0a 🡓 🡓 🡓 🡓 🡓 🡓 4 0 0 0 CR LF The above means you have a chunk of data. Chunk size is 4000…
  • Hi @"af11", Are you aware of 'annotations' in Python? 🧐 I suppose you got confused on following point in code: @app.route('/welcome')def welcome(): return render_template('welcome.html', redirect_url=get_url('oauth_callback'), webhook_url=get_url('webhook'), home_url=get_url('index'), app_key=APP_KEY) What is the leading…
  • @"Greg-DB" wrote:... In this HTTP 2 sample, the final 200 does have "Content-Length". Just one addition to avoid confusion: There is temporary rollback, that's why "Content-Length" just appear without workaround! 😜 That gonna change at March beginning. 😉 @"mbvistaprint", you can see in the @"Greg-DB"'s post for HTTP/1.1…
  • Hi @"saeeda", As your code is not fully represented, may be something lefts hidden. 🤔 @"saeeda" wrote:... httpService.get('/dropbox/listfolders', {"cursor": cursor})// this endpoint from our server side when the cursor !== '' then call continue ... ... "then call continue" - Are you sure? It looks like it's not and you are…
  • Hi @"mbvistaprint", From the description you gave to here, seems your environment is using HTTP protocol version less than 2. Dropbox server "keeps strictly" the "chunked" encoding in such a case and it's difficult to turn it off. The mentioned by me above works for HTTP v2, but not in other (in particular not in v1.1) and…
  • Hmm... In such a case I'm up to here. In my test when transfer encoding is off (i.e. set to Identity) "content-length" comes up: x-content-security-policy: sandbox x-content-type-options: nosniff x-robots-tag: noindex, nofollow, noimageindex x-server-response-time: 46 x-webkit-csp: sandbox content-type: application/json…
  • @"Greg-DB" wrote:... I just tried a HEAD request on your sample link with "dl=1" sending the same request headers you specified for that one and I do get the expected redirects and successful response (that is, a 301, then a 302, then a 200). Hmm... 🤔 And what about the "content-length" with "the same request headers"?…
  • Hi @"mbvistaprint", Hah... 😁 One more bug... 🤷 It's definitely not the same like the one I linked to before. Here as far as I can see Dropbox server gets confused from Accept-Encoding header. You haven't posted you query, but most probably there your web client pushed all supported encodings. What seems confusing to…
  • Hi @"mbvistaprint", To see the headers received, you can dump "Headers" property of your "response", if you want. 😉