You need to sign in to do that
Don't have an account?
bink wang
SFRestMethodPOST returen null, anyone can help me??
the code bellow:
anyone can tell me why?? thenks
SFRestRequest *request = [SFRestRequest requestWithMethod:SFRestMethodPOST path:@" /services/apexrest/MyRestApi/MyFavorite" queryParams:nil]; request.endpoint = @"/services/apexrest/MyRestApi/MyFavorite"; [[SFRestAPI sharedInstance] sendRESTRequest:request failBlock:^(NSError *e){ NSLog(@"error: %@", e); } completeBlock:^(id success){ NSLog(@"success: %@", success); }];the response print in the console:
success: (null)
anyone can tell me why?? thenks
/services/apexrest/MyRestApi/MyFavorite
Does it have any data to be returned?