Open SheikMain opened 6 years ago
One thing I forgot to mention, everything else we are parsing works fine such as $response['items'][0]['statistics'], it's only topicDetails that's causing problems.
The topicDetails.topicIds[] property is deprecated.
But the topicDetails part as a whole is not fully deprecated. And you might still see the topicIds property populated, but since it's deprecated, it could be removed at any time and I think your code shouldn't assume that it'll be present. Here's an APIs Explorer link that shows the topicDetails part for the GoogleDevelopers channel, where topicDetails.topicIds[] and topicDetails.topicCategories[] both have values: https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.channels.list?part=topicDetails&forUsername=GoogleDevelopers&_h=1&
I've had been utilizing the api for sometime for my web application. I've never had any issues with my function to pull my users topic details.
Yesterday, an issue popped up prompting the following error:
Error Class 'Google_Service_YouTube_ChannelTopicDetails' not found - /wp-content/themes/freelanceengine/vendor/google/apiclient/src/Google/Model.php:231
Here is the function snippet parsing topicDetails:
`<?php
function youtubeProfileDataArray($channel_id){
};// end function
?>`
This has worked fine for quite a long time.
What's very odd is while debugging the error, I returned $response['items'][0] and it included everything we need, including topicDetails. I then tried simply parsing ['topicDetails'] from the response in the file I called the function and received the same error.
Is topicDetails now depricated or has anything changed?
Thank you.