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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -