You are here

addFavoriteSite

-(AlfrescoRequest *) addFavoriteSite:(AlfrescoSite *)site completionBlock:(AlfrescoSiteCompletionBlock)completionBlock - adds the given site to the current user's list of favorite sites, if the request cannot be completed successfully an error with code 403 is returned.

Parameters

(AlfrescoSite *) site
The site to be added as a favorite.
(AlfrescoSiteCompletionBlock) completionBlock
The block that is called with the updated site on completion of the operation. The block has the format typedef void (^AlfrescoSiteCompletionBlock)(AlfrescoSite *site, NSError *error).

Returns

(AlfrescoRequest *)

Example