0
I’m new in Wordpress and PHP and I’m having a little problem rsrs
I have a very large string that I get dynamically. This string is actually an array of various values and variables. I would like to take all the values contained in the videoID variable that repeats N times within that array (which is actually a string).
Or, in other words, I’m trying to use the Youtube API to show the content of a playlist on my site. I could only get a GIANT string using file_get_contents at the url https://www.googleapis.com/youtube/v3/playlistItems?part=contentDetails&maxResults=50&playlistId=ID_DA_PLAYLIST&key=API_KEY . If anyone can help me do that :)
Thank you!
You cannot encode the json array for easy transfer, and use a foreach to get ids in a new variable?
– Leo Letto