问题
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