Hello,

I m trying to retrieve video details from youtube API,  first I need to get 
list of video and then send a request for each video id (I need this second 
request to get more details of the video) :

#1 : request for mostpopular videos:  
* getVideosList() {*
*      
 return  this.http.get('https://www.googleapis.com/youtube/v3/search? , *
*       {params: {...} })*
*   }*
* // return {..."items": [  { 'id': 'id1', 'title' : 'videotitle1' }, 
{'id': 'id2', 'title' : 'videotitle2'} , ...] ...} *
 
#2 Send a GET request for each video id (id1, id2......) and return and 
array with response of all the get request.

I m stuck with observable to chain this two step of request ? 

Could some body can help me please ?

Thanks you



-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to angular+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/6a1abd8b-5461-457a-aaf7-0129b42d5026n%40googlegroups.com.

Reply via email to