-
Connecting a Seeed ESP32C3 to DropBox [Arduino]
I am trying to figure out how to upload a file on an ESP32C3 [which uses the Arduino IDE] to Dropbox. I am using the generic HTTP API as a basis for doing so. I am effectively converting "curl" commands to Arduino code. But sods law, I was stopped at the last post. I have list files working, and I have download files…
-
Getting a list of files using HTTP API in shell with Curl
I run this and get empty response, despite having created a /Homework/math curl -X POST https://api.dropboxapi.com/2/files/list_folder \ --header "Authorization: Basic <token>" \ --header "Content-Type: application/json" \ --data…
-
SwiftyDropbox was compiled with optimization - stepping may behave oddly
Using Carthage to build and use Swifty DropBox. For the main part it works well, but seem to be running into an issue relating to optimization every now and again as the subject line says. How can I compile without optimization and install with Carthage? Thanks
-
SwiftyDropbox error handing for thumbnails
Finishing off my dropbox based app and trying to put in some comprehensive error code. Downloading thumbnails within it and crafted this method based on the documentation. Seems to work, but wanted to double check I am on the right track. func doThumbError(error: Any) { switch error as!…
-
Renaming a file/folder using swifty dropbox
Hi, Sorry, a stupid question. I want to rename a file within my dropbox using the swifty dropbox API. But I don't find a rename method and I wanted to check with you the procedure I should be using? Thanks Mark
-
Shared Links in SwiftyDropbox broken?
Running this function using SwiftyDropbox! Was working well til this morning, now it returns nothing useful, just the reply that the link already exists, and when I try and get the link... it returns nil. Did see a post saying this functionality is broken right now. I hope not the case cause it is a single point of failure…
-
Need Alamofire 4.0.0 for swift 3.0
Want to use swiftyDropbox with Swift 3.0 / IOS 10.0 Followed the install instructions, but it downloads the wrong version of Alamofire I suspect. I think I need 4.0.0 which I can add to a swift 3.0 independently, compile and run. Version 3.3.X that the loads when you do the podfile for SwifyDropbox install won't even…
-
DropBox swift API unsupported tag error
Using the new SwiftyDropbox V2 API. Working well. But noted an error when I don't think it should be one on the download. [request-id b192ba37c902b513d81c8fe4c67551d8] API route error - { ".tag" = "unsupported_extension"; } A minor point, it continues anyway... the extension it doesn't like "rtf", which I admit I added to…
-
Swift 3.0 & Swift iOS SDK
Trying to follow this tutorial with ISO 10.0 and Swift 3.0 and although it compiles and appears to run I get there errors, and I suspect it is not working. https://www.appcoda.com/dropbox-api-tutorial/ 2016-09-09 13:38:39.906 DBDemo[1554:798094] -canOpenURL: failed for URL: "dbapi-2://1/connect" - error: "This app is not…
-
shared app directory, exists but inaccessible to my app
Created an app, linked to a specific directory. Lets call it acme. Create acme directory on my dropbox which I shared and placed some more directories and files within it. Able to authenticate as the app using an HTTP API call. But when I call the share files API call; I get an error, like it doesn't work. curl -X POST…
-
nil cursor never returned
Using this call https://api.dropboxapi.com/2/sharing/list_shared_links Getting a cursor back cause I had many many links; was working well, until this evening when it stopped working and now just loops, returning the same cursor again and again. Tried revoking my share? Tried deleting all the links, have only 15 now? Tried…
-
URI HTTPS request
Hi, I am trying to follow this dropbox tutorial; but with success https://blogs.dropbox.com/developers/2013/07/using-oauth-2-0-with-the-core-api/ I tried this call using the parameters shown and it worked, at least tried to redirect me to the localhost. But what does this mean? I simply want to be able to ask a user of app…
-
API example for SwiftyDropBox v2.0 sharing
<SPAN class="com">#!/usr/bin/python</SPAN><SPAN class="kwd">import</SPAN><SPAN class="pln"> dropboxdbx </SPAN><SPAN class="pun">=</SPAN><SPAN class="pln"> dropbox</SPAN><SPAN class="pun">.</SPAN><SPAN class="typ">Dropbox</SPAN><SPAN class="pun">(</SPAN><SPAN class="str">'ab-X'</SPAN><SPAN class="pun">)</SPAN><SPAN…
-
Parsing CURL output [which is in JSON of course]
Use a JSON parser, I found the answer! stupid me.