Django TwitterRESTAPI v1.1的Statuses/oembed返回{“;errors”;:[{“;message”;:“;抱歉,该页面不存在”;“;code”;:34}

Django TwitterRESTAPI v1.1的Statuses/oembed返回{“;errors”;:[{“;message”;:“;抱歉,该页面不存在”;“;code”;:34},django,python-3.x,twitter,twitter-rest-api,Django,Python 3.x,Twitter,Twitter Rest Api,我正在尝试使用status/oembed检索嵌入的tweet,发送到api的url是 但是我注意到在文档中发送的url应该是 我已经顺利地使用了搜索/推文,问题只在于oembed。 下面是我正在做的一个例子 from twitter import * class TwitterCrawler(object): # Authenticate twitter API # Access token, Access token secret, Consumer key, Con

我正在尝试使用status/oembed检索嵌入的tweet,发送到api的url是 但是我注意到在文档中发送的url应该是

我已经顺利地使用了搜索/推文,问题只在于oembed。 下面是我正在做的一个例子

  from twitter import *
  class TwitterCrawler(object):
    # Authenticate twitter API
    # Access token, Access token secret, Consumer key, Consumer secret
    def __init__(self):
        self.t = Twitter(
                         auth=OAuth(self.accessToken, 
                                self.accessTokenSecret,
                                self.consumerKey, 
                                self.consumerSecret)
                         )

    def getEmbeddedTweet(self):
        result =self.t.statuses.oembed(id="507185938620219395")
        return result
返回的错误为: TwitterHTTPError
Twitter发送了URL:1.1/statuses/oembed/567386147631144960.json的状态404,使用参数:…详细信息:b'{“errors”:[{“message”:“抱歉,该页面不存在”,“code::34}]}'

此操作的正确端点是publish.Twitter.com/oembed