Vimeo API AuthorizationUrl without login

I use the Vimeo API to get videos in the context of a web application and I have a simple question (I hope: P)

You can request authorization of the application using the oAuth protocol and the following link: https://vimeo.com/oauth/authorize?oauth_token=XXXX , WITHOUT forcing a user to enter the browser?

I noticed that if I do not log into Vimeo, when I go to https://vimeo.com/oauth/authorize?oauth_token=XXXX , Vimeo will redirect me to the login page ...

Thank.

+2
login authorization oauth vimeo
01 Oct '12 at 11:13
source share
1 answer

I found it =)

You can create an access token using application credentials or using login data. In this case, you do not need to call authorization.

Example (taken from comments):

String vimeoAPIURL = "vimeo.com/api/rest/v2?video_id=213"; OAuthRequest request = new OAuthRequest(Verb.GET, vimeoAPIURL); request.addQuerystringParameter("format", "json"); request.addQuerystringParameter("method","vimeo.videos.getUploaded"; request.addQuerystringParameter("user_id", "user137"); request.addQuerystringParameter("full_response", "true"); request.addQuerystringParameter("method","vimeo.videos.getThumbnailUrls"); service.signRequest(accessToken, request); Response response = request.send(); Syso(response.getCode()); Syso(response.getBody()); 
+2
Oct 02
source share



All Articles