code: def __get_url(self, endpoint):
          
          url = self.url
          api = "wc-api"
  
          if url.endswith("/") is False:
              url = "%s/" % url
  
          if self.wp_api:
              api = "wp-json"
  
          return "%s%s/%s/%s" % (url, api, self.version, endpoint)
docs: Get URL for requests