YouTube API - channelListResponse-> elements are empty

Beginning December 17, 2000 11:30:00 UTC for some Google API accounts, YouTube returns an empty array itemsupon receipt

$channelsResponse = $youtube->channels->listChannels('status, snippet', array( 'mine' => 'true', 'userIp' => $user_ip ));.

Does anyone have any ideas why, or what type of account will give this type of response?

Array
(
[kind] => youtube#channelListResponse
[etag] => "kuL0kDMAqRo3pU7O0pwlO-Lfzp4/tq_PhL9iSiPcDtwajpv63Dy8fEk"
[pageInfo] => Array
    (
        [totalResults] => 0
        [resultsPerPage] => 0
    )

[items] => Array
    (
    )

)

I'm not sure if this is related to youtube api v3 does not return any elements , because it resultsPerPagealways displays as0

+4
source share

Source: https://habr.com/ru/post/1620611/


All Articles