code: def format_http_method(self, api_version, api_call, data):
          
          # Define get methods for automatic http request methodology.
          #
          # All API v2 requests are POST methods.
          if api_version == 2:
              return 'post'
          elif api_version == 1:
              if api_call in self.api_methods['1 post']:
                  return 'post'
              else:
                  return 'get'
          elif api_version == 'was':
              # WAS API call.
              # Because WAS API enables user to GET API resources in URI, let's chop off the resource.
              # '/download/was/report/18823' --> '/download/was/report/'
              api_call_endpoint = api_call[:api_call.rfind('/') + 1]
              if api_call_endpoint in self.api_methods['was get']:
                  return 'get'
              # Post calls with no payload will result in HTTPError: 415 Client Error: Unsupported Media Type.
              if data is None:
                  # No post data. Some calls change to GET with no post data.
                  if api_call_endpoint in self.api_methods['was no data get']:
                      return 'get'
                  else:
                      return 'post'
              else:
                  # Call with post data.
                  return 'post'
          else:
              # Asset Management API call.
              if api_call in self.api_methods['am get']:
                  return 'get'
              else:
                  return 'post'
docs: Return QualysGuard API http method, with POST preferred..