IPWorks Cloud 2020 C++ Edition

Questions / Feedback?

RestoreResource Method

Restores a given file resource revision.

Syntax

ANSI (Cross Platform)
char* RestoreResource(const char* lpszRevision, const char* lpszToResourcePath);

Unicode (Windows)
LPWSTR RestoreResource(LPCWSTR lpszRevision, LPCWSTR lpszToResourcePath);
- (NSString*)restoreResource:(NSString*)revision :(NSString*)toResourcePath;
#define MID_DROPBOX_RESTORERESOURCE 19

IPWORKSCLOUD_EXTERNAL int IPWORKSCLOUD_CALL IPWorksCloud_Dropbox_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

Remarks

This method restores a the specified Revision of a file resource, saving it to the given path ToResourcePath. Restoring a deleted file resource can also be done using this method as long as the revision Id is known (there's no way to obtain revision Ids for file resources which have already been deleted; this is a limitation of the Dropbox API).

Revision must be a revision Id. ToResourcePath must be a file path (and it must end with the desired name of the file resource being restored).

Error Handling (C++)

This method returns a String value; after it returns, call the GetLastErrorCode() method to obtain its result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 C++ Edition - Version 20.0 [Build 8265]