code: def url(self, key):
          
          return urlunparse((self.protocol, '%s:%s' % (self.domain, self.port),
                             '%s/api/v1%s' % (self.prefix, URLS[key]),
                             '', '', ''))
docs: Creates a full URL to the API using urls dict