Difference between revisions of "API Assets Retrieve"
From unroole CMS wiki
Tommy.leung (Talk | contribs) (Created page with "== Summary == Retrieve data for one asset. == URI == {{:API_Base_URI}}accounts/[account-id]/assets/[asset-id] == HTTP Method == GET == Required Paramaters == {| class="wik...") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Summary == | == Summary == | ||
+ | |||
Retrieve data for one asset. | Retrieve data for one asset. | ||
== URI == | == URI == | ||
+ | |||
{{:API_Base_URI}}accounts/[account-id]/assets/[asset-id] | {{:API_Base_URI}}accounts/[account-id]/assets/[asset-id] | ||
== HTTP Method == | == HTTP Method == | ||
+ | |||
GET | GET | ||
Latest revision as of 11:22, 24 March 2014
Summary
Retrieve data for one asset.
URI
https://api.unroole.com/accounts/[account-id]/assets/[asset-id]
HTTP Method
GET
Required Paramaters
Paramater | Default | Maximum Length | Accepted Values | Description |
---|---|---|---|---|
token | API Persistence Token that identifies this user and its permissions. |
Optional Paramaters
Paramater | Default | Maximum Length | Accepted Values | Description |
---|---|---|---|---|
fields | id, name, file_name, url | API Asset Fields | List of comma separated fields to be returned in the response. | |
url_time_limit | 60 | The length of time (in seconds) that the asset url will be accessible for if the asset is private. This only applies to the response. |
Response
Field | Type | Description |
---|---|---|
http_status | integer | API Status Code http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html |
error | Rails default | |
asset | API Asset Fields |