def get_endpoints_by_subscriber_id(self, subscriber_id):
self._validate_subscriber_id(subscriber_id)<EOL>url = "<STR_LIT>".format(<EOL>subscriber_id)<EOL>response = NWS_DAO().getURL(url, self._read_headers)<EOL>if response.status != <NUM_LIT:200>:<EOL><INDENT>raise DataFailureException(url, response.status, response.data)<EOL><DEDENT>data = json.loads(response.data)<EOL>endpoints = []<EOL>for datum in data.get("<STR_LIT>", []):<EOL><INDENT>endpoints.append(self._endpoint_from_json(datum))<EOL><DEDENT>return endpoints<EOL>
Search for all endpoints by a given subscriber