| Getting Started with Flex 2 > Lessons > Use Web Services > Review the API documentation | |||
The MXNA blog aggregator provides a number of web services for developers at www.adobe.com/go/mxna_developers. Before you start building your application, you should review the API documentation for their web services to make sure a method exists that can retrieve the information you want. The API documentation for the web services is located at www.adobe.com/go/mxna_api.
The documentation describes a method called getMostPopularPosts. The method returns a number of posts with the most clicks in the last 30 days. For each post returned, the following information is provided: postId, clicks, dateTimeAggregated, feedId, feedName, postTitle, postExcerpt, postLink.
The method takes two required numeric parameters:
daysBack specifies the number of days you want to go back.limit specifies the total number of posts you want returned; the number can't exceed 50.With this information, you can use an RPC service component called WebService to consume the web service and retrieve the data you want--a list of the most popular posts in the last 30 days.
Flex 2.01