Skip to content
Advertisement

How can PHP pull the JSON data from VIMEO API and print it on XML file?

I am calling the following Vimeo API to return all the videos under the specific videos. What I was trying to achieve is to only pull the particular JSON data that I desire to. “uri” and “name” is the only data that i need. And how can I print this thing to a XML file? https://developer.vimeo.com/api/reference/folders#get_project_videos

BTW this is my attempt:

JavaScript

enter image description here

Advertisement

Answer

You just need to save the three things in a separate array and then print at the format that you want.

UPDATE

you have an array of data with all your videos. sow you need to use a foreach to get uri, name and pictures of all videos and save in another array.

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement