i implements youtube search list from Youtube search list
but coming to this error
Access is not configured. Use the Google Developers Console to activate the API for your project.
The code: -
youtube = new YouTube.Builder(transport,jsonFactory, new HttpRequestInitializer() { @Override public void initialize(HttpRequest request) throws IOException { } }).setApplicationName("youtube-cmdline-search-sample").build(); String queryTerm = getInputQuery(); // Define the API request for retrieving search results. YouTube.Search.List search = youtube.search().list("id,snippet"); // Set your developer key from the Google Developers Console for String apiKey = ""; //i have server key and browser key search.setKey(apiKey); search.setQ(queryTerm); search.setType("video"); search.setFields("items(id/kind,id/videoId,snippet/title,snippet/thumbnails/default/url)"); search.setMaxResults(NUMBER_OF_VIDEOS_RETURNED);
Decision: -
I created a project from here the old site of the developer console.
I used the browser key from the old site of the developer console.
I had the same problem. I turned off the API and then turned it back on and then it worked.
google YouTube. Google Developers. API google api, , apt youtube api, .
// Set your developer key from the Google Developers Console for String apiKey = ""; //i have server key and browser key search.setKey(apiKey); search.setQ(queryTerm)
, ?
, " ", IP- IP- ( ).
! , . , , , . New Developers Console . , ! .