导入工作,但不会导入包中的所有内容?

问题描述:

我正在尝试使用具有OAuth身份验证的第三方网站进行调度,但我无法从调度中导入内容。 Consumer api它显然存在于图书馆,但由于某种原因,它没有被发现。我使用SBT建项目,这里是依赖:导入工作,但不会导入包中的所有内容?

libraryDependencies += "net.databinder.dispatch" %% "dispatch-core" % "0.10.0" 

及以下就是运行REPL(SBT,控制台快)给出。试图编译该项目结束于类似值未找到错误。导入不会失败,但消费者不可用。其他的东西像Http这样的发行版本都可以使用。

scala> import dispatch._ 
import dispatch._  

scala> val x = Consumer("asdasdasd", "asdasdasdasad") 
console:10: 
error: not found: value Consumer  
     val x = Consumer("asdasdasd", "asdasdasdasad") 
      ^ 

scala> val y = new Http 
y: dispatch.Http = Http([email protected]) 

看来其他人遇到过这个问题为好,但没有答案.. https://groups.google.com/forum/?fromgroups=#!topic/liftweb/NI3nZJjsrjo

的关闭,我发现事情是SomeConsumer在dispatch.oauth包,但它不是什么我在找。 Here你可以看到消费者和令牌的包,但

import dispatch.oauth._ 

于事无补。

该API是0.8版本。

如果您阅读文档,您将使用重启存储库,该存储库是使用async-http-client完全重写调度的。

举一个例子使用,您可以看到following code on gitubfollowing

+0

谢谢你,我会看看这不久! – Zavior 2013-05-12 20:13:06