def get_subscription_by_channel_id_and_endpoint_id(<EOL>self, channel_id, endpoint_id):
subscriptions = self.search_subscriptions(<EOL>channel_id=channel_id, endpoint_id=endpoint_id)<EOL>try:<EOL><INDENT>return subscriptions[<NUM_LIT:0>]<EOL><DEDENT>except IndexError:<EOL><INDENT>raise DataFailureException(url, <NUM_LIT>, "<STR_LIT>")<EOL><DEDENT>
Search for subscription by a given channel and endpoint