Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7752687
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T11:51:40+00:00 2026-06-01T11:51:40+00:00

i’m a newbie in dropbox development in IOS, i’m still learning about implementing dropbox

  • 0

i’m a newbie in dropbox development in IOS, i’m still learning about implementing dropbox in my app, the app is a text editor, i want to make it support for upload and downloading file in dropbox. In my app, i just can make some change in text and then upload it into dropbox, but i cant restore it into the last version. I have read Dropbox Rest API and read about https://api.dropbox.com/1/restore/<root>/<path>

but i dont know what to do, can somebody help me?

Thank you

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T11:51:42+00:00Added an answer on June 1, 2026 at 11:51 am

    Try this

    /* Restores a file at path as it existed at the given rev and returns the metadata of the restored
    file after restoration */

    - (void)restoreFile:(NSString *)path toRev:(NSString *)rev;
    

    where path is the path of the DropBox file that has to restored and rev is the Revision to which it has to be restored

    and its delegate methods are

    - (void)restClient:(DBRestClient*)client restoredFile:(DBMetadata *)fileMetadata;
    - (void)restClient:(DBRestClient*)client restoreFileFailedWithError:(NSError *)error;
    

    and you can use these to get the revisions list of the particular file

    /* Loads a list of up to 10 DBMetadata objects representing past revisions of the file at path */

    - (void)loadRevisionsForFile:(NSString *)path;
    

    /* Same as above but with a configurable limit to number of DBMetadata objects returned, up to 1000 */

    - (void)loadRevisionsForFile:(NSString *)path limit:(NSInteger)limit;
    

    and their Delegate Methods are

    - (void)restClient:(DBRestClient*)client loadedRevisions:(NSArray *)revisions forFile:(NSString *)path;
    - (void)restClient:(DBRestClient*)client loadRevisionsFailedWithError:(NSError *)error;
    

    example

        NSString *filePath = @"/Contacts";
        NSString *revisionStr = @"a1067dc176";   // sample revisionString
    
        [[self restClient] loadRevisionsForFile:filePath limit:10];
    
        [[self restClient] restoreFile:filePath toRev:revisionStr];
    

    // Delegate Methods

    - (void)restClient:(DBRestClient*)client loadedRevisions:(NSArray *)revisions forFile:(NSString *)path{
    
        for (DBMetadata *file in revisions) 
        {
            NSLog(@"MetaData's Revisions \t%@", file.rev);
        }
    }
    - (void)restClient:(DBRestClient*)client loadRevisionsFailedWithError:(NSError *)error{
    
    }
    
    - (void)restClient:(DBRestClient*)client restoredFile:(DBMetadata *)fileMetadata{
        NSLog(@"Restored FileMetaData Path : %@",fileMetadata.path);
            NSLog(@"Restored FileMetaData rev : %@",fileMetadata.rev);
    }
    - (void)restClient:(DBRestClient*)client restoreFileFailedWithError:(NSError *)error{
         NSLog(@"There was an error restoring the file - %@", error);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am writing an app with both english and french support. The app requests
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I have a French site that I want to parse, but am running into
I want use html5's new tag to play a wav file (currently only supported
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.