code: def _get(self, api_call, params=None, method='GET', auth=False,
               file_=None):
          
          url = "{0}/{1}".format(self.site_url, api_call)
  
          if method == 'GET':
              request_args = {'params': params}
          else:
              request_args = {'data': params, 'files': file_}
  
          # Adds auth. Also adds auth if username and api_key are specified
          # Members+ have less restrictions
          if auth or (self.username and self.api_key):
              if self.username and self.api_key:
                  request_args['auth'] = (self.username, self.api_key)
              else:
                  raise PybooruError("'username' and 'api_key' attribute of "
                                     "Danbooru are required.")
  
          # Do call
          return self._request(url, api_call, request_args, method)
docs: Function to preapre API call.
  
          Parameters:
              api_call (str): API function to be called.
              params (str): API function parameters.
              method (str): (Defauld: GET) HTTP method (GET, POST, PUT or
                             DELETE)
              file_ (file): File to upload (only uploads).
  
          Raise:
              PybooruError: When 'username' or 'api_key' are not set.