使用 Java 和 Scribe 的 Vimeo 搜索 API [英] Vimeo search API with Java and Scribe

查看:54
本文介绍了使用 Java 和 Scribe 的 Vimeo 搜索 API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

In its API Vimeo engineers are claiming that we should be able to search without access token, I have spent hours and unfortunately cannot get it to work, I'm not sure if I'm doing something wrong, So please help if you have done this before.

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();

谢谢

推荐答案

改变这个:

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

为此:

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

这篇关于使用 Java 和 Scribe 的 Vimeo 搜索 API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆