Scala Oauth 1.0a在从播放2.3升级到播放2.4后停止工作

Scala Oauth 1.0a在从播放2.3升级到播放2.4后停止工作,scala,oauth,playframework,playframework-2.4,Scala,Oauth,Playframework,Playframework 2.4,我最近从游戏2.3升级到游戏2.4 所有对Yelp的API请求都用于Play2.3,如下所示 WS.url("http://api.yelp.com/v2/search?radius_filter=20000&term=" + URLEncoder.encode(store.name, "UTF-8") + "&location=" + URLEncoder.encode(store.address, "UTF-8"))) .sign(OAuthCalcul

我最近从游戏2.3升级到游戏2.4

所有对Yelp的API请求都用于Play2.3,如下所示

WS.url("http://api.yelp.com/v2/search?radius_filter=20000&term=" +
    URLEncoder.encode(store.name, "UTF-8") + "&location=" + 
    URLEncoder.encode(store.address, "UTF-8")))
  .sign(OAuthCalculator(ConsumerKey(YELP_CONSUMER_KEY, YELP_CONSUMER_SECRET), RequestToken(YELP_TOKEN, YELP_TOKEN_SECRET)))
  .get
升级到Play2.4后,我从Yelp收到签名无效错误


有什么新的我需要做的吗?我确实看到OAuth签名计算器在Play2.4中发生了变化。谢谢。

生成的URL是什么?(你可以审查密钥和机密。)你是对的,这一点。我如何找到生成的URL?我转储了WSRequest.url,它显示了NingWSRequest(NingWSClient)(com.ning.http.client)。AsyncHttpClientConfig@48bf4cc4)、不是很有用。WSResponse没有关于url的任何内容。请将
.get
替换为
.url
以查看结果url。这就是我所做的,将.url附加到我的WSRequest。它没有显示纯字符串。NingWSRequest(NingWSClient(com.ning.http.client)。AsyncHttpClientConfig@732bc916),GET,EmptyBody,Map(),Map(),Some(play.api.libs.oauth。OAuthCalculator@77bb63ff),None,None,None,None,None,None)。urlOk,这次我没有使用Scala字符串插值。url中没有键或密码。它显示: