I want to delete via API all media associated to a user.
The function userMedia->delete exist but I must specify the mediaids.
I try to get the mediaids from user->get(select_media = extend) but looking at the API source the piece of code is not implemented:
Is there a workaround to get the user mediaids via API?
The function userMedia->delete exist but I must specify the mediaids.
I try to get the mediaids from user->get(select_media = extend) but looking at the API source the piece of code is not implemented:
PHP Code:
frontends/php/api/classes/class.cuser.php
// TODO:
// Adding medias
if(!is_null($options['select_medias']) && str_in_array($options['select_medias'], $subselects_allowed_outputs)){
}
// Adding mediatypes
if(!is_null($options['select_mediatypes']) && str_in_array($options['select_mediatypes'], $subselects_allowed_outputs)){
}
Comment