IPWorks Cloud 2020 C++ Edition

Questions / Feedback?

AddParents Method

Adds folders to the list of parents for a file or folder.

Syntax

ANSI (Cross Platform)
int AddParents(const char* lpszResourceId, const char* lpszParentIds);

Unicode (Windows)
INT AddParents(LPCWSTR lpszResourceId, LPCWSTR lpszParentIds);
- (void)addParents:(NSString*)resourceId :(NSString*)parentIds;
#define MID_GOOGLEDRIVE_ADDPARENTS 2

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

Remarks

This method adds one or more folders, specified by ParentIds, to the list of parents for the file or folder specified by ResourceId.

ParentIds should be specified as a comma-separated list of one or more resource Ids.

Note that resources within a shared drive must always have exactly one parent, and that only shared drive members with the "file organizer" or "organizer" roles can move files and folders within a shared drive.

Error Handling (C++)

This method returns a 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. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

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