def _build_url(self, endpoint):
if not issubclass(type(self), ChatApiBase) and not self.subdomain:<EOL><INDENT>raise ZenpyException("<STR_LIT>")<EOL><DEDENT>if self.subdomain:<EOL><INDENT>endpoint.netloc = '<STR_LIT>'.format(self.subdomain, self.domain)<EOL><DEDENT>else:<EOL><INDENT>endpoint.netloc = self.domain<EOL><DEDENT>endpoint.prefix_path(self.api_prefix)<EOL>return endpoint.build()<EOL>
Build complete URL