getLastPosts

Previous page  First page  Next page

Description

Returns the title and URL, and Blog ID of the most recently posted articles or comments from blogs in your Reseller profile. You can specify the number of posts to return per blog and per article, to a maximum of 100 total returns per call.

 

 

Syntax

reseller.getLastPosts(version, username, password, type, number, struct)

 

 

Request Fields

 

version - Specifies the version number of the API. Set this to "1.3".  This value is currently ignored, but will be useful for API changes in future versions.

 

username - Your reseller account username.

 

password - Your reseller account password.

 

type - The type of post to return, can be either 'article' or 'comment'.

 

number - The number of recent posts to return, maximum 100.

 

struct - Provides optional configuration for you call as per the following fields:

 

num_per_blog - The number of articles or comments per blog.

 

num_per_article - The number of comments per article.

 

Optional field constraints

 

num_per_article should not exceed num_per_blog for type = "comment".
 
num_per_article and num_per_blog cannot be less than "1" or a character string, otherwise an error message will be generated.
 
when type = "comment" and only one optional field is indicated, it will be ignored.

 

Response Fields

Returns a list of structs with the following structure:

 

title - The title of the article (either a new article or the article that was commented). If the article doesn't have a title (a photo for example), the response will be null.

 

url - The article's permanent link.
 
blog_id - The article or comment's source blog's ID.