Java: how to get youtube access/refresh token for app? -


i have google app credentials: app-name, api-key, client-id, client-email, client-secret ...

is possible access youtube api without user autorization. example user auth can refresh tokern , access token this:

 tokenresponse response = new refreshtokenrequest( google_http_transport, google_json_factory, new genericurl( "https://www.googleapis.com/oauth2/v3/token" ), channelyoutubeaccess.getrefreshtoken() ).setclientauthentication( new clientparametersauthentication( getgoogleclientid(), getgoogleclientsecret() ) ).execute();     if( response != null ) {       accesstoken = response.getaccesstoken();     } 

could me. thank you.

https://developers.google.com/apis-explorer/#p/youtube/v3/youtube.videos.list?part=snippet&id=qk8mjjjvaes&_h=4&

final youtube.videos.list listrq = youtube.videos().list("id, status").setid(id).setkey(client_key);         videolistresponse searchresponse = listrq.execute(); 

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -