Я подписался на канал YouTube, используя https://pubsubhubbub.appspot.com/subscribe.
мой ответ
{"hub_topic":"https:\/\/www.youtube.com\/xml\/feeds\/videos.xml?channel_id=UCc7VM8Y8dDTG9fu-X1UrliQ", "hub_challenge":"13220839416583683898", "hub_mode":"subscribe", "hub_lease_seconds":"432000"}
Я возвращаю $_REQUEST["hub_challenge"] значение. Все ок.
$_REQUEST["hub_challenge"]
Но я не получаю никакого ответа xml. Как я могу получить информацию о видео как ответ xml?
мой php код
<?php return $_REQUEST["hub_challenge"]; ?>
Информация о диагностике абонента на
https://pubsubhubbub.appspot.com/topic-details?hub.url=https%3A%2F%2Fwww.youtube.com%2Fxml%2Ffeeds%2Fvideos.xml%3Fchannel_id%3DUCc7VM8Y8dDTG9fu-X1UrliQ
Topic Details https://www.youtube.com/xml/feeds videos.xml?channel_id=UCc7VM8Y8dDTG9fu-X1UrliQ Last successful fetch Tue, 09 Apr 2019 14:30:22 +0000 Last ping Tue, 09 Apr 2019 14:30:21 +0000 Last fetch error n/a Aggregate statistics 0 fetch request(s) per second to www.youtube.com, 0% errors Last item retrieved Content received Tue, 09 Apr 2019 14:30:22 +0000 <entry> <id>yt:video:VBovsnkhqWo</id> <yt:videoId>VBovsnkhqWo</yt:videoId> <yt:channelId>UCc7VM8Y8dDTG9fu-X1UrliQ</yt:channelId> <title>AYI CAN BASIYO! 10. SEVİYE NİTA ve YILDIZ GÜCÜ !!! - Brawl Stars</title> <link rel="alternate" href="https://www.youtube.com/watch?v=VBovsnkhqWo"/> <author> <name>Oyunların Ustası</name> <uri>https://www.youtube.com/channel/UCc7VM8Y8dDTG9fu-X1UrliQ</uri> </author> <published>2019-04-09T12:00:08+00:00</published> <updated>2019-04-09T12:00:56.087554137+00:00</updated> </entry>