Difference between revisions of "Work.download.private"

From Safe Creative API
Jump to navigation Jump to search
w>Mpolo
m (Changed work.download return)
w>Mpolo
m (Changed work.download return)
Line 10: Line 10:
 
= Parameters =  
 
= Parameters =  
 
* '''authkey*:''' Authorization key of the work owner
 
* '''authkey*:''' Authorization key of the work owner
 +
* '''ztime*:''' Z-Timestamp
 
* '''code*:''' Work code
 
* '''code*:''' Work code
  

Revision as of 11:37, 21 September 2010

Returns the download URL for a user's work. The returned URL is only valid for a limited time.

Info

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

Parameters

  • authkey*: Authorization key of the work owner
  • ztime*: Z-Timestamp
  • code*: Work code

* Required parameter

Returns

  • url: Download URL

Example

REQUEST:

https://api.safecreative.org/v2/
?component=work.download.private
&authkey=Bb7NTK14QGeHjluE3vziqQ
&code=1003030120266
&ztime=1271749826106
&signature=06797af03767a19fef5acae915ff2b11bdad5535

RESPONSE:

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