assets resource endpoint

This endpoint is useful if there is a specific asset you want to retrieve information about.
If you'd like to list the posts in a blog, see /blogs/<id>/post-assets. Assets are
also often found via Event objects retrieved from the various event stream
endpoints in the API. You can also do full-text searches of assets across the whole
of TypePad via the endpoint /assets.

New assets are created by submitting a POST request to an asset listing
endpoint which depends on what context you wish to create the asset in.
To create a new post in a blog, see /blogs/<id>/post-assets. To upload
a media asset to use within a blog post, see /blogs/<id>/media-assets.
To post a comment in response to another asset, see /assets/<id>/comments.
The type of asset created depends on the context in which you POST it
and, in some cases, on the data you provide in the request.

Supported Methods

DELETE

Delete the selected asset and its associated events, comments and favorites.

(Read Only) An object describing the group or blog to which this asset belongs.

content (string)

The raw asset content. The textFormat property describes how to format this data. Use this property to set the asset content in write operations. An asset posted in a group may have a content value up to 10,000 bytes long, while a Post asset in a blog may have up to 65,000 bytes of content.

crosspostAccounts (set<string>)

(Write Only) A set of identifiers for Account objects to which to crosspost this asset when it's posted. This property is omitted when retrieving existing assets.

description (string)

The description of the asset.

excerpt (string)

(Read Only) A short, plain-text excerpt of the entry content. This is currently available only for Post assets.

favoriteCount (integer)

(Read Only) The number of distinct users who have added this asset as a favorite.

groups (array<string>)

(Read Only)(Deprecated) An array of strings containing the id URI of the Group object that this asset is mapped into, if any. This property has been superseded by the container property.

hasExtendedContent (boolean)

(Read Only)true if this asset has the extended content. This is currently supported only for Post assets that are posted within a blog.

id (string)

(Read Only) A URI that serves as a globally unique identifier for the user.

isFavoriteForCurrentUser (boolean)

(Read Only)true if this asset is a favorite for the currently authenticated user, or false otherwise. This property is omitted from responses to anonymous requests.

(Read Only)(Deprecated) An array of object type identifier URIs identifying the type of this asset. Only the one object type URI for the particular type of asset this asset is will be present.

permalinkUrl (string)

(Read Only) The URL that is this asset's permalink. This will be omitted if the asset does not have a permalink of its own (for example, if it's embedded in another asset) or if TypePad does not know its permalink.

(Read Only) An object describing the site from which this asset was retrieved, if the asset was obtained from an external source.

textFormat (string)

A keyword that indicates what formatting mode to use for the content of this asset. This can be html for assets the content of which is HTML, html_convert_linebreaks for assets the content of which is HTML but where paragraph tags should be added automatically, or markdown for assets the content of which is Markdown source. Other formatting modes may be added in future. Applications that present assets for editing should use this property to present an appropriate editor.

title (string)

The title of the asset.

urlId (string)

(Read Only) A string containing the canonical identifier that can be used to identify this object in URLs. This can be used to recognise where the same user is returned in response to different requests, and as a mapping key for an application's local data store.

Client Library Methods for PHP

Delete the selected asset and its associated events, comments and favorites.