by-category resource endpoint

URL: /blogs/<id>/post-assets/@published/@by-category/<id>.<format>

Supported Methods

GET Get the published posts in the selected blog that have been assigned to the given category.

Query String Arguments

start-index
Index of the first item to return. The first item in the list has index 1.
max-results
Maximum number of items to return in the list response.

Resource Type

This endpoint returns an object of type List<Post>.

entries (array<Post>)
The items within the selected range.
totalResults (integer)
The total number of items in the whole list of which this object is a chunk.

Client Library Methods for PHP

Get the published posts in the selected blog that have been assigned to the given category.
$tp->blogs->getPublishedPostAssetsByCategory(array(

    # Required Parameters
    "id" => $id,
    "category" => $category,

    # Optional Parameters
    "limit" => $limit,
    "offset" => $offset,

))

Example Request

GET /blogs/6a012877b13de7970c012877b13df1970c/post-assets/@published/@by-category/Television.json?max-results=4 HTTP/1.1
Host: api.typepad.com

HTTP/1.0 200 OK
Content-type: application/json
Content-length: 45

{
   "entries": [],
   "totalResults": 0
}