1

Google Feed API を使用して画像を読み込むことができません。mediaGroup を使用して画像を読み込みます。

これは、フィードを取得するために私が書いた JavaScript コードです。

<script type="text/javascript">

google.load("feeds", "1");
function initialize() 
   {
    var feed = new google.feeds.Feed("http://techzei.com/feed");
    feed.setNumEntries(14);
    feed.load(function (result) {
        if (!result.error) 
        {
            result.feed.entries.forEach(function(entry)
            {
              $('#feed').append('<div class="card"><a href="' + entry.link + '">' + entry.title + '</a><p>' + entry.contentSnippet + '</p><br><p>'+entry.publishedDate+'"<img src="'+ entry.mediaGroups+'"/></div>');
            });
        }
    });
}
google.setOnLoadCallback(initialize);

html

<article id="feed"></article>

私が今得ているすべての画像は「未定義」です。私は何か他のことをすべきですか?Google Feed API 開発者はこれについてあまり明らかにしていません

4

1 に答える 1