Vimeo search API with Java and Scribe

匆匆过客 提交于 2019-12-22 11:33:58

问题


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

Thanks


回答1:


change this:

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

for this:

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


来源:https://stackoverflow.com/questions/7897492/vimeo-search-api-with-java-and-scribe

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!