| Difficulty | Beginner |
| Skills Required | PHP,XML,REST Web Services |
| Estimated Time Required | minutes |
| Source Code Access Required | No |
| Categories | |
| Verified with Versions | 3.1 |
| Views | 1290 |
| Average Rating | |
Networks come with a number of built in RSS feeds. You may run into cases where you're looking for a feed that does not exist. Luckily, our REST API can be used to generate nearly any feed we're looking for. Check out these pages for more info on how to use our REST API.
One common question we get about our REST API is how to generate feeds that contain data from private network objects. (example: feed containing the 20 most recent members) This tutorial will show you how to make your own feed by setting up a PHP file on your network that runs a given REST request locally and returns the data for use elsewhere.
Before we can begin, login to your network's file system using WebDav.
<?php
echo XN_REST::get("REST REQUEST GOES HERE");
?>
<?php
echo XN_REST::get("http://YOURNETWORKNAME.ning.com/xn/atom/1.0/content(type='User')?from=0&to=20&order=createdDate@D");
?>
Open a browser window and navigate to your new file (http://YOURNETWORKNAME.ning.com/newFeed.php). You've now created your own feed!
Created Jun 12, 2008 at 1:04pm. Last updated just now.
© 2008 Created by Ning Developer Admin