def get_sailthru_client(site_code):
<EOL>config = get_sailthru_configuration(site_code)<EOL>if not config.get('<STR_LIT>'):<EOL><INDENT>msg = '<STR_LIT>'.format(site_code)<EOL>log.debug(msg)<EOL>raise SailthruNotEnabled(msg)<EOL><DEDENT>key = config.get('<STR_LIT>')<EOL>secret = config.get('<STR_LIT>')<EOL>if not (key and secret):<EOL><INDENT>msg = '<STR_LIT>'.format(site_code)<EOL>log.error(msg)<EOL>raise ConfigurationError(msg)<EOL><DEDENT>return SailthruClient(key, secret)<EOL>
Returns a Sailthru client for the specified site.

Args:
    site_code (str): Site for which the client should be configured.

Returns:
    SailthruClient

Raises:
    SailthruNotEnabled: If Sailthru is not enabled for the specified site.
    ConfigurationError: If either the Sailthru API key or secret are not set for the site.