Validate the API params as specified in the config file.

def _validate_api_params(params):
    '''
    Validate the API params as specified in the config file.
    '''
    # page_id and API key are mandatory and they must be string/unicode
    return (isinstance(params['api_page_id'], (six.string_types, six.text_type)) and
            isinstance(params['api_key'], (six.string_types, six.text_type)))