Youtube
Youtube copied to clipboard
getVideoInfo with single string returns 'Object of class stdClass could not be converted to string'
this $video= Youtube::getVideoInfo('rie-hPVJ7Sw')
returns an error of Object of class stdClass could not be converted to string
whereas $video= Youtube::getVideoInfo(['rie-hPVJ7Sw'])
returns correct data, albeit in an array. Should the readme be updated or is there a genuine here?
@kristiana-s Did you manage to resolve the issue?
@alaouy Apologies for the delay, I've just resorted to fetching the data from the array as is returned when passing the id ['rie-hPVJ7Sw'] like so. However, as I said, wasn't obvious from the readme that it is the case.