RevokeLink Method
Revokes a shared link.
Syntax
ANSI (Cross Platform) int RevokeLink(const char* lpszSharedLink); Unicode (Windows) INT RevokeLink(LPCWSTR lpszSharedLink);
- (void)revokeLink:(NSString*)sharedLink;
#define MID_DROPBOX_REVOKELINK 20 IPWORKSCLOUD_EXTERNAL int IPWORKSCLOUD_CALL IPWorksCloud_Dropbox_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
Remarks
This method revokes an existing shared link; SharedLink must be a shared link URL.
Keep in mind that a resource may still be accessible after revoking its shared link if shared links still exist for any of its parent folders. The ListSharedLinks method can be used to get a list of all existing links that provide access to any given resource.
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.)