Comments
-
I've checked with the team and users created via the API are expected to have the "invited" status. It's unlikely the login is failing due to the Dropbox account status, but could be an issue with SAML. I'll keep looking into this and follow up with you as I have more information but in the meantime, maybe check that SSO…
-
Hi Francisco, Thanks for the clarification. It's not possible to create an active user via API v1 or v2 without any action on the user's behalf. A user isn't considered active until they have accessed their account for the first time. Your users will need to create a password or log in with single sign-on to activate their…
-
Hi Francisco, A Dropbox account is created for each invited user, whether or not the send_welcome_email parameter is set. So your users should be able to access their account at any time after your app successfully calls the team/members/add endpoint. Leah
-
Yes, now that you've tested out the Dropbox API with you own access token (generated in the App Console), you'll want to set up a login process for your users to each get their own access tokens. You can use the same app you've created and the same app key and secret. However, each user will need to go through a "connect…
-
Reply if you find out anything new... it would be super helpful!
-
Did you previously try out the Swift SDK in the simulator? That would explain having entries already in the keychain. I'm not sure why they wouldn't be deleted when resetting the simulator though... that's odd. You can always use `Dropbox.unlinkClient()` in your code to clear the credentials. This shouldn't affect running…
-
Quick update - the PhotoWatch sample app has been updated to SwiftyDropbox 3.0.0 so this issue should be fixed now. Thanks for reporting the issue!
-
I've verified that this is a bug in SwiftyDropbox and we're working on a fix. Sorry about that. Thanks so much for letting us know about it!
-
Since you're using Swift 2.0, what does your Podfile for your project look like?
-
Glad to hear you got it working!
-
Hi Carmine - I just wanted to let you know that there's a new version of SwiftyDropbox that works with the v2 updates: https://blogs.dropbox.com/developers/2015/06/swiftydropbox-v0-2/ The previous blog post has also been updated with new sample code.
-
Hi Carmine, Just yesterday we changed API v2, which broke the SwiftyDropbox SDK. Sorry about that! We're working on an update to SwiftyDropbox and will release version 0.2 in the next day or two. Again, sorry for the hassle and it's not your fault at all! Leah
-
Thanks! How about trying an upload session where you can upload each file in chunks? The SDK contain methods for filesUploadSessionStart, filesUploadSessionAppend, and filesUploadSessionFinish: https://github.com/dropbox/SwiftyDropbox/blob/master/Source/Files.swift#L1964 You'll still need to track which file you're…
-
The path is considered the unique identifier, though we're considering using IDs for files and tracking it as a feature request. More info here: https://www.dropboxforum.com/hc/en-us/community/posts/201368209-ID-for-files
-
Thanks for the suggestion!
-
I think you might be able to do this via the Dropbox Core API. The trick would be to not sync the folder via the desktop client (by unselecting it using selective sync). Then, with your cron job, maybe check if any files need to be updated and use the /files_put method to update any changed files. Does that sound like what…
-
You may want to check that [UIImage imageNamed:@"IMG\_0005.jpg"] exists in your project and that it is getting saved to your local filesystem correctly. Another thing to check would be that your uploadToDropBox: method is getting called at all.
-
Oh good. Thanks so much for your feedback too!
-
One thing you could do to improve this is in your AppDelegate's - application:openURL:sourceApplication:annotation: try using Dropbox.handleRedirectURL(url) instead of the lower-level method DropboxAuthManager.sharedAuthManager.handleRedirectURL(url). This will set the Dropbox.authorizedClient for you, so you don't need to…
-
Thanks for the code! This is odd but I'm seeing nothing wrong. I'm able to link to Dropbox successfully. Here's the console output: https://www.dropbox.com/s/mttaf63iotmhan7/Screenshot%202015-06-17%2011.01.49.png?dl=0 Each time I re-open the app, everything works fine too:…
-
Could you also include the code from the view controller where you're calling the DropboxAPI methods? Maybe also include your AppDelegate code? I tested the code from the blog post this morning and it appears to be working okay. Are you doing anything differently for your app?
-
Just to clarify, Dropbox a user is authorized by clicking a link in your app which calls Dropbox.authorizeFromController(controller). This presents a web view for the user to login and afterwards, you're calling Dropbox.handleRedirectURL(url) which handles storing the access token for the user. There's no need to set or…
-
There's no way to know if a token has been revoked until you make an API call. You'll need to look for a 401 error response and then call Dropbox.unlinkClient() to clear the bad tokens.
-
Hmmm... this could also happen if the access token has been revoked. Maybe try Dropbox.unlinkClient() and re-authorizing?
-
Are you sure the user has completed the auth flow? Maybe check that you have a valid access token with DropboxAuthManager.sharedAuthManager.hasStoredAccessTokens() or by printing DropboxAuthManager.sharedAuthManager.getAllAccessTokens()?
-
I'm not sure I understand what you're trying to do. You can get a thumbnail of an image using the Dropbox Core API /thumbnails endpoint: https://www.dropbox.com/developers/core/docs#thumbnails
-
It looks like you're using Dropbox API v1 which doesn't have the IDs. Only API v2 has IDs for files (it's a new feature): https://www.dropbox.com/developers/documentation/http/documentation#files-get_metadata My suggestion would be to switch to the new API v2 if possible. If not, there may be other ways to make a best…
-
Hi Samson, There's no way to get the previous name of a folder by the current folder name. However, in the new API v2, you can use the "id" parameter returned by the API to identify the folder. So perhaps you could store the "id" along with the folder name/path. Then when you see a new folder, check if the id of the folder…
-
The same methods are available for Swift as for Obj-C and there's an example of uploading a file in the Core API for iOS tutorial: https://www.dropbox.com/developers/core/start/ios#uploading
-
Hi Abhishek - you can save the modified date of a recently added file using the Dropbox Core API: https://www.dropbox.com/developers/core I don't think you can do this from within a Salesforce object, but you may want to reach out to Salesforce to confirm.