parameters: (self, url, params=None)
return_statement: return api_request
docstring: Creates an API request based on provided URL and GET Parameters
docstring_summary: Creates an API request based on provided URL and GET Parameters
docstring_tokens: Creates an API request based on provided URL and GET Parameters
function: def create_request(self, url, params=None):
          """Creates an API request based on provided URL and GET Parameters"""
          if params is None:
              request_url = url
          else:
              request_url = url + '?' + urllib.parse.urlencode(params)
  
          if self.api_token is None:
              api_request = urllib.request.Request(request_url)
          else:
              api_headers = {
                  'Authorization': 'token ' + self.api_token,
                  'Time-Zone': self.timezone,
              }
              api_request = urllib.request.Request(
                  request_url, headers=api_headers)
  
          return api_request
function_tokens: def create_request ( self , url , params = None ) : if params is None : request_url = url else : request_url = url + '?' + urllib . parse . urlencode ( params ) if self . api_token is None : api_request = urllib . request . Request ( request_url ) else : api_headers = { 'Authorization' : 'token ' + self . api_token , 'Time-Zone' : self . timezone , } api_request = urllib . request . Request ( request_url , headers = api_headers ) return api_request