代码之家  ›  专栏  ›  技术社区  ›  N. Lucas

无法连接到AS3中的Twitter API

  •  0
  • N. Lucas  · 技术社区  · 15 年前

    我正在尝试通过AS3应用程序连接到Twitter API,但我一直在

    Error #2032: Stream Error. URL: https://api.twitter.com/oauth/request_token

    当我尝试 URLRequest("https://api.twitter.com/oauth") 它至少加载了一些东西并调用我的 Event.COMPLETE 倾听者。如果没有第三方,Flash就不能连接到Twitter API吗?我尝试过许多AS3 OAuth软件包,并一直得到相同的东西。

    edit 我在用 Security.loadPolicyFile("http://www.twitter.com/crossdomain.xml");

    1 回复  |  直到 14 年前
        1
  •  2
  •   abraham    14 年前

    看起来twitter限制flash请求来自twitter.com。您应该能够在自己的服务器上运行代理请求以绕过限制。

    http://api.twitter.com/crossdomain.xml

    http://groups.google.com/group/twitter-development-talk/browse_thread/thread/28232e3965222037