Is there an easy way to read blog post and author data from the array returned by ning api?


When I make an API call to ning by doing something like: NingApi::instance()->blogPost->fetchNRecent($n, $args);

I get an array object:

Array ( [success] => 1 [anchor] => BfHfhl_YR-EoGTBFRpXCzoBbx5H8oZP1 [firstPage] => 1 [lastPage] => 1 [entry] => Array ( [0] => Array ( [id] => 6473712:BlogPost:1640 [author] => 0p5s9omihvx0v [url] => [createdDate] => 2012-02-17T16:49:36.545Z [updatedDate] => 2012-02-21T23:11:54.567Z [publishStatus] => publish [publishTime] => 2012-02-17T16:30:00.000Z [title] => How to Build a Better Bird House [description] =>

Right now I have multiple foreach loops embedded with in each other to read the blog post.

I was wondering if there is a way I can achieve the same and get the blog properties (featuredDate,title,description) and sub properties (author.fullName,author.iconUr) without having to wrote a lot of custom code?



Views: 58

Reply to This

Blog Posts

Getting Started

Posted by Kyle Ford on October 13, 2010 at 8:00am 3 Comments

A Note on API Pricing

Posted by Phil McCluskey on October 1, 2010 at 8:55am 0 Comments

Welcome to Build!

Posted by Kyle Ford on September 30, 2010 at 8:30pm 1 Comment

Ning Status

© 2024   Created by Build Team.   Powered by

Badges  |  Report an Issue  |  Terms of Service