Corrected function name, and result when parsing parameters fails.
Added validate_api_restriction check. Corrected comment.