Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getVideoInfo with single string returns 'Object of class stdClass could not be converted to string' #172

Closed
kristiana-s opened this issue Aug 3, 2021 · 2 comments

Comments

@kristiana-s
Copy link

kristiana-s commented Aug 3, 2021

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?

@alaouy
Copy link
Owner

alaouy commented Nov 14, 2021

@kristiana-s Did you manage to resolve the issue?

@kristiana-s
Copy link
Author

@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.

@alaouy alaouy closed this as completed Sep 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants