vsite-hr / mentor

Online learning platform.
MIT License
3 stars 2 forks source link

Google REST client #4

Open gkresic opened 8 years ago

gkresic commented 8 years ago

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/

gkresic commented 7 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.