Work.download: Difference between revisions

From Safe Creative API
Jump to navigation Jump to search
w>Mpolo
Changed work.download auth policy
w>Mpolo
m Changed work.download auth policy
Line 2: Line 2:


Work must be publicly registered and allow downloads.  
Work must be publicly registered and allow downloads.  
This component must be accessed using an authkey from a partner application.


= Info =
= Info =

Revision as of 11:45, 16 September 2010

Partner component to get the download URL for any work. The returned URL is only valid for a limited time.

Work must be publicly registered and allow downloads.

Info

  • Component name: work.download
  • Signature: Requires signature using the shared key's private key
  • Timestamp: Requires ztime parameter
  • Authorization level: GET
  • API trust level: Partner

Parameters

  • sharedkey*: Your application shared key
  • ztime*: Z-Timestamp
  • code*: Work code

* Required parameter

Returns

  • url: Download URL

Example

REQUEST:

https://api.safecreative.org/v2/
?component=work.download
&sharedkey=zy9x4ol0ctg3btyswq7b5wi9
&code=1003030120266
&ztime=1271749826106
&signature=3b2d5552b5cd969c370ce70dae280a76dc844895

RESPONSE:

<?xml version="1.0" encoding="UTF-8"?>
<url>[...]</url>