Return feed
Every API call that manipulates assets return an atom feed as the container of the data fetched. Some of these calls are: create; uploadMaterial or getAssetsByTags.
The asset in the feed is represented as an entry where some calls may retrieve multiple entries under one feed.
A feed for the asset management has several properties that describe the search query. These values are not generated for any of the calls in the create section.
Feed properties for GetAssets and GetAssetsByTags
Return Parameter | Description |
id | Unique asset ID, maybe set to *,* in case of multiple returns |
published | Indicates the date the material was created, <published>2007-02-16T20:22:57.000Z</published>. |
title | Provides the asset name, <title></title>. In case of multiple results this title is defined by the query |
generator | Provides the version, the url, and the generator string (gizmo.com), <generator version=’1.0’uri= http://www.gizmoz.com/’>Gizmoz API- GAWS</generator>. |
link | Provides the wdsl service call link, which returns the data. This parameter is optional. <link href=”www.gizmoz.com….” rel=”alternate” /> /* links for item view page */ |
Info | Provides a detailed call description. |
opensearch:totalResults | Indicates how many results were found by the query |
opensearch:startIndex | Indicates the point at which the index starts. This return is dependent on the from and to parameters. |
opensearch:itemsPerPage | Indicates how many entries were retrieved by this search, starting at the startIndex parameter |
opensearch:Query | Indicates which parameters were queried, for example sonsOf or getAssets. |
Example
</p> <p><feed xmlns="http://www.w3.org/2005/Atom" xmlns:asset="http://www.gizmoz.com/api/module/item/1.0.rdf" xmlns:comment="http://www.gizmoz.com/api/module/comment/1.0.rdf" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:partner="http://www.gizmoz.com/api/module/partner/1.0.rdf" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:user="http://www.gizmoz.com/api/module/category/1.0.rdf"></p> <p><title>Tags:sport,football</title></p> <p><id>*,*</id></p> <p><generator uri="http://www.gizmoz.com" version="1.0">Gizmoz API - GAWS</generator></p> <p><updated>2010-01-31T16:17:53Z</updated></p> <p><opensearch:itemsPerPage>8</opensearch:itemsPerPage></p> <p><opensearch:totalResults>78</opensearch:totalResults></p> <p><opensearch:startIndex>1</opensearch:startIndex></p> <p><opensearch:Query role="belongsToTag" searchTerms="null:sport,football"/><br /> <entry></entry><br /> <!-- Here will be the list of entries --></p> <p></feed></p> <p>
Asset Entry xml explained
Return Parameter | Description |
title | Asset’s name, this value is not unique per asset |
author.name | The ID of the user that generated the asset – deprecated |
id | The assets unique ID |
updated | Date of last update call |
published | Date of creation |
asset:group | This node holds the field which are the core details of the asset. |
asset:type | Type of the asset (see appendix…) |
asset:subtype | Subtype of the asset (see appendix …) |
asset:attribs | Some values are stored during the creation process. The parameters that defined the asset then are saved under root.system
The asset attributes are in XML format. They contain a system section of internal attributes, and external section the user can change. |
asset:content | Reference to a linked asset which serves as content of the main asset in the entry. There may be more than one such tag.
Stores the media content of the asset with the following attributes:
|
asset:thumbnail | Reference to a linked asset which serves as a thumbnail of the main asset in the entry. There may be more than one such tag.
Stores the media content of the asset with the following attributes:
|
asset: link_attribs | The relation between an asset and a referred asset, such as head and its preview image. |
Linkattrs.role | Child of the asset: link_attribs node. Define the purpose of the content asset within the main asset |
Asset:tags | A tag attached to the asset. There may be more than one such tag. Contains these attributes:
|
asset:authorid | The user who created the asset – user ID |
asset:authorname | The user who created the asset – username |
asset:authorcontent | Like the asset:content, this gives information of some linked asset which represents the user. Usually the default head image. |
asset:authorization | Defines who can view the newly created asset (private/public) |
Example:
<br /> <entry><br /> <title>My Head</title><br /> <author><br /> <name>62292</name><br /> </author><br /> <id>17317035</id><br /> <updated>2010-01-31T16:49:00Z</updated><br /> <published>2010-01-31T16:49:00Z</published><br /> <asset:group><br /> <asset:type>head</asset:type><br /> <asset:subtype>TDC</asset:subtype><br /> <asset:attribs><br /> <root><br /> <system><br /> <centeredEyes>0</centeredEyes><br /> <make_zip>0</make_zip><br /> <PreviewHeight>640</PreviewHeight><br /> <Wait>1</Wait><br /> <environment>instantheads</environment><br /> <Transparent>1</Transparent><br /> <OutputWidth>640</OutputWidth><br /> <createAction>gizmoz/head</createAction><br /> <PreviewWidth>640</PreviewWidth><br /> <GeneratePreview>1</GeneratePreview><br /> <Title>My Head</Title><br /> <extention>.tdc</extention><br /> <OutputHeight>640</OutputHeight><br /> </system><br /> </root><br /> </asset:attribs><br /> <asset:content creation_date="201001311149" format="video/flv" height="640" id="17317044" modified_date="201001311149" name="Gizmoz4U" role="idle" url="http://c-static.gizmoz.com/file/material/62292/icon/17317044.flv?v=1264956821156" width="640"><br /> <asset:linkAttrs><br /> <linkAttrs><br /> <role>idle</role><br /> <injectToGroup>content</injectToGroup><br /> </linkAttrs><br /> </asset:linkAttrs><br /> </asset:content><br /> <asset:thumbnail creation_date="201001311149" format="image/png" height="640" id="17317037" modified_date="201001311149" name="17317037" role="preview" url="http://c-static.gizmoz.com/file/material/62292/icon/17317037.png?v=1264956799936" width="640"><br /> <asset:linkAttrs><br /> <linkAttrs><br /> <role>preview</role><br /> <injectToGroup>thumbnail</injectToGroup><br /> </linkAttrs><br /> </asset:linkAttrs><br /> </asset:thumbnail><br /> <asset:thumbnail creation_date="201001311149" format="image/png" height="160" id="17317038" modified_date="201001311149" name="17317038" role="icon" url="http://c-static.gizmoz.com/file/material/62292/icon/17317038.png?v=1264956821463" width="160"><br /> <asset:linkAttrs><br /> <linkAttrs><br /> <role>icon</role><br /> <injectToGroup>thumbnail</injectToGroup><br /> </linkAttrs><br /> </asset:linkAttrs><br /> </asset:thumbnail><br /> <asset:authorid>62292</asset:authorid><br /> <asset:desc>API_HEAD</asset:desc><br /> <asset:authorization>public</asset:authorization><br /> <asset:link_attribs><br /> <linkAttrs/><br /> </asset:link_attribs><br /> </asset:group><br /> </entry><br />
Comments (0)
Trackbacks (1)
Leave a comment
Trackback
-
February 3, 2010 at 4:18 pmQuick start tutorial « Gizmoz Developers Center