【问题标题】:Vimeo search API with Java and Scribe带有 Java 和 Scribe 的 Vimeo 搜索 API
【发布时间】:2011-10-26 21:04:14
【问题描述】:

在其 API Vimeo 工程师声称我们应该能够在没有访问令牌的情况下进行搜索,我已经花费了几个小时,不幸的是无法让它工作,我不确定我是否做错了什么,所以请帮助如果你以前做过。

OAuthService service = new     ServiceBuilder().provider(VimeoApi.class).apiKey(consumerString).apiSecret(consumerSecret).build();

OAuthRequest myrequest = new OAuthRequest(Verb.GET,"http://vimeo.com/api/rest/v2format=json&method=vimeo.videos.search&query=fun");

Token mytoken = new Token("", consumerSecret);
service.signRequest(mytoken, myrequest); 
Response response = myrequest.send();

谢谢

【问题讨论】:

    标签: java search oauth vimeo scribe


    【解决方案1】:

    改变这个:

    Token mytoken = new Token("", consumerSecret);
    

    为此:

    Token mytoken = new Token("", "");
    

    【讨论】:

    • 很棒的巴勃罗,成功了!非常感谢您创建抄写员 - 干得好!
    • 我使用客户端 ID 作为 api 密钥和客户端密码作为 apisecret .....但是得到下面提到的响应:{"generated_in":"0.0050","stat":"fail"," err":{"code":"401","expl":"传递的 oauth_signature 无效。","msg":"无效签名"}}
    猜你喜欢
    • 2014-05-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多