<s> from base import BaseClient <EOL> PROSPECTS_API_VERSION = '<STR_LIT>' <EOL> class ProspectsClient ( BaseClient ) : <EOL> """<STR_LIT>""" <EOL> def _get_path ( self , method ) : <EOL> return '<STR_LIT>' % ( PROSPECTS_API_VERSION , method ) <EOL> def get_prospects ( self , offset = None , orgoffset = None , limit = None ) : <EOL> """<STR_LIT>""" <EOL> params = { } <EOL> if limit : <EOL> params [ '<STR_LIT:count>' ] = limit <EOL> if offset : <EOL> params [ '<STR_LIT>' ] = offset <EOL> params [ '<STR_LIT>' ] = orgoffset <EOL> return self . _call ( '<STR_LIT>' , params ) <EOL> def get_company ( self , company_slug ) : <EOL> return self . _call ( '<STR_LIT>' % company_slug ) <EOL> def get_options_for_query ( self , query ) : <EOL> return self . _call ( '<STR_LIT>' , { '<STR_LIT:q>' : query } ) <EOL> def search_prospects ( self , search_type , query , offset = None , orgoffset = None ) : <EOL> """<STR_LIT>""" <EOL> params = { '<STR_LIT:q>' : query } <EOL> if offset and orgoffset : <EOL> params [ '<STR_LIT>' ] = orgoffset <EOL> params [ '<STR_LIT>' ] = offset <EOL> return self . _call ( '<STR_LIT>' % search_type , params ) <EOL> def get_hidden_prospects ( self ) : <EOL> return self . _call ( '<STR_LIT>' ) <EOL> def hide_prospect ( self , company_name ) : <EOL> return self . _call ( '<STR_LIT>' , data = ( '<STR_LIT>' % company_name ) , method = "<STR_LIT:POST>" , content_type = "<STR_LIT>" ) <EOL> def unhide_prospect ( self , company_name ) : <EOL> return self . _call ( '<STR_LIT>' , data = { '<STR_LIT>' : company_name } , method = "<STR_LIT>" ) </s>
