Just wondering if someone has sample code to return the top 25 links of reddit (using PHP). In JSON or XML. i can’t wrap my head around the API… and rarely use python.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That will return a PHP array with all the data from the front page. You can limit how many you display using a simple while() loop.
This is very simple now that you have the array from above, because all you have to do is step through it.