I am using the API w/php to retrieve member data. Have no problem retrieving fullName & gender, but when I add profileQuestions to the query, it appears to timeout. Any idea why?

 

Example:

$count = 100;
$fields = "fullName,gender,profileQuestions";
$path = sprintf("User/alpha?count=%s&fields=%s&isMember=true", $count, $fields);
$result = $ningApi->get($path);

 

One other question. I am writing a script that needs to pull profileQuestion field data for ALL my members, not just 100 of them. Is there any way around the 100 member limit in the API?

Views: 65

Reply to This

Replies to This Discussion

A few questions:

  • How many profile questions do you have?
  • What happens when you request one profile? 50?

 

It is possible to page through results. The anchor variable returned in a list result. If you include it as a parameter on your next request, you'll get the next page of results. For example, the first request would be:

 

  /User/alpha?count=50

 

It will return an anchor such as sBLHSuPH8xNPdBxyRHy3pw with the rest of he results. It can be used for the next page of results:


  /User/alpha?count=50&anchor=sBLHSuPH8xNPdBxyRHy3pw

 

Also, If you don't mind, send me a private message with your network URL.

 

Reply to Discussion

RSS

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