【问题标题】:How to Upload Video on twitter using twitvid but it is not working如何使用 twitvid 在 Twitter 上上传视频但它不起作用
【发布时间】:2015-05-12 11:23:11
【问题描述】:

我想在twitter 上传视频,我使用twitvid sample code

我还在我的帐户上创建应用程序并生成演示中所需并在演示中设置的所有令牌和 ID,但是当我执行代码并从库中选择视频并发送请求时,它会失败并显示如下错误

    Domain=NSURLErrorDomain Code=-1003 "A server with the specified hostname could not be found." UserInfo=0x79e30350 {
NSErrorFailingURLStringKey=http://im.twitvid.com/api/uploadPic, _kCFStreamErrorCodeKey=8, NSErrorFailingURLKey=http://im.twitvid.com/api/uploadPic, NSLocalizedDescription=A server with the specified hostname could not be found., _kCFStreamErrorDomainKey=12, NSUnderlyingError=0x7b6be260 "A server with the specified hostname could not be found."

}

如果演示比实际应用程序中的代码不起作用,我仍在开发演示 B'coz。 在我在 twitter 开发者网站上创建应用程序并获取客户端、令牌和应用程序 ID 并在示例代码中设置它之后,示例代码不起作用,但它仍然会给出上述错误 Y?我不知道。

如果有人这样做,请给我任何建议。

【问题讨论】:

标签: ios twitter oauth-1.0a


【解决方案1】:

根据提供的错误判断,您使用的 URL 似乎是错误的。

【讨论】:

  • 在我的代码中,我没有指定它自动从 lib 中获取的任何 URL,或者如果 U 出现网络问题,请下载示例代码,请帮助我
  • B'coz 我仍然无法解决问题。
猜你喜欢
  • 2013-10-04
  • 1970-01-01
  • 1970-01-01
  • 2015-10-08
  • 2013-11-12
  • 2015-04-26
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多