def _validate_api_params(params):
 return (isinstance(params['api_page_id'], (six.string_types, six.text_type)) and isinstance(params['api_key'], (six.string_types, six.text_type)))

def _validate_api_params ( params ) : return ( isinstance ( params [ 'api_page_id' ] , ( six . string_types , six . text_type ) ) and isinstance ( params [ 'api_key' ] , ( six . string_types , six . text_type ) ) )
validate the api params as specified in the config file .