2017-07-18 85 views
1

除非我錯過了一些東西,在Twitters Docs它只顯示如何使用和從單個Twitter時刻獲取JSON。你能獲取所有趨勢Twitter時刻的數組/列表嗎?Twitter API - 你如何得到Twitter的時刻完整列表

它顯示了他們的榜樣在他們的文檔

GET https://publish.twitter.com/oembed?url=https://twitter.com/i/moments/650667182356082688 

將返回

{ 
    "url": "https://twitter.com/i/moments/650667182356082688", 
    "title": "The Obamas' wedding anniversary", 
    "html": "<a class=\"twitter-moment\" href=\"https://twitter.com/i/moments/650667182356082688\">The Obamas&#39; wedding anniversary</a>\n<script async src=\"//platform.twitter.com/widgets.js\" charset=\"utf-8\"></script>", 
    "width": 550, 
    "height": null, 
    "type": "rich" 
    "cache_age": "3153600000", 
    "provider_name": "Twitter", 
    "provider_url": "https://twitter.com", 
    "version": "1.0" 
    } 

我寧願這樣一個非嵌入式版本,但可以使用它,如果我只得到一個url到嵌入式版本

回答

0

目前沒有使用Moments的API(並且它當前不在API roadmap上)。唯一需要暴露的功能是在其他網站上嵌入Moments的oEmbed功能,這確實需要您從網站(或應用程序中的共享鏈接)獲得相關Moment的URL。