I need to fetch data from an API using curl. As per the manual given the curl command should be like this
curl --user {YOUR_CLIENT_ID}:{YOUR_CLIENT_SECRET} https://www.udemy.com/api-2.0/courses
Now while passing this command in pUTTY I am getting response and the data is displaying correctly but how to use this in a PHP page...am quiet new with cURL so any suggestion would help me a lot.
Thanks in advance