Settings¶
All Settings methods are available under \RealDebrid\RealDebrid()->settings
namespace.
Note
In order to use any of these methods, remember to create a RealDebrid client.
Please refer to the Creating a client section if you didn’t do it.
get()¶
Get current user settings with possible values to update.
Return¶
The settings as an stdClass
{
"download_ports": [
"normal",
"secured"
],
"download_port": "normal"
}
Examples¶
<?php
$settings = $realDebrid->settings->get();
update()¶
Error
Not working yet
convertPoints()¶
Error
Not working yet
disableLogs()¶
Error
Not working yet
addAvatar()¶
Upload a new user avatar image.
Note
The response might throw a RealDebrid\Exception\RealDebridException
with one of the following messages :
- Image resolution error: maximum resolution is 150px x 230px
- File not allowed: allowed extensions are .jpg, .gif and .png
- Upload too big: maximum file size is 1024 KB
Parameters¶
param. | desc. | type | default |
---|---|---|---|
$path * | Path to the avatar file | string |
Examples¶
<?php
$settings = $realDebrid->settings->addAvatar('C:/fakepath/avatar.png');