code: def log_api_call(self):
          
          history = self.get_history()
          history.amount_api_calls += 1
          self._history = history.save()
          return history
docs: Increases the amount of logged API calls for the user by 1.