Open gkresic opened 8 years ago
Implementation proposal:
One class that taked YouTube ID in constructor and has methods for fetching HTML that embeds video, another one for video duration, thumbnail URL etc. One static method for converting URL to ID.
REST client for fetching details of YouTube video. Mentor will ask users only for video ID and fetch all details via call to YouTube API.
Resources:
http://docs.jboss.org/resteasy/docs/3.0.19.Final/userguide/html_single/index.html#RESTEasy_Client_Framework
https://developers.google.com/youtube/
https://developers.google.com/youtube/v3/docs/
https://developers.google.com/youtube/v3/docs/videos/list
Check usefulness of official Java lib: https://developers.google.com/api-client-library/java/