iamkubi / pydactyl

Python wrapper for the Pterodactyl Panel API
MIT License
69 stars 21 forks source link

Error when requesting machine resources. get_server_utilization #30

Closed Jaro-c closed 3 years ago

Jaro-c commented 3 years ago

There is an error when trying to obtain the resource utilization

This link does not exist in the api: client/servers/%s/utilization

response = self._api_request(
            endpoint='client/servers/%s/utilization' % server_id)

The correct one is: client/servers/%s/resources

response = self._api_request(
            endpoint='client/servers/%s/resources' % server_id)