Work.upload.begin: Difference between revisions

From Safe Creative API
Jump to navigation Jump to search
w>Jguillo
(Created page with 'Initiates an upload process. This component must be called through an upload API server returned by work.upload.lookup Once this method has been called you can call [[work.u…')
 
w>Jguillo
No edit summary
Line 10: Line 10:


= Parameters =  
= Parameters =  
* '''authkey*:''' Authorization key of the work owner
* '''authkey*:''' Authorization key
* '''ztime*:''' Z-Timestamp
* '''ztime*:''' Z-Timestamp
* '''uploadid*:''' Upload ID obtained from [[work.upload.lookup]]
* '''uploadid*:''' Upload ID obtained from [[work.upload.lookup]]

Revision as of 12:59, 5 May 2010

Initiates an upload process. This component must be called through an upload API server returned by work.upload.lookup

Once this method has been called you can call work.upload.chunk to upload the work contents.

Info

  • Component name: work.upload.begin
  • Signature: Requires signature using the authkey's private key
  • Timestamp: Requires ztime parameter
  • Authorization level: ADD

Parameters

  • authkey*: Authorization key
  • ztime*: Z-Timestamp
  • uploadid*: Upload ID obtained from work.upload.lookup

* Required parameter

Returns

  • restvalueresponse
    • state: ready

Sample

REQUEST:

https://upload01.safecreative.org/v2/
?component=work.upload.begin
&authkey=1i5g2aaf2bz09lyo867cuimqg
&uploadid=3c33a96c-7743-43d0-9614-db70fa46d3ad
&ztime=1271749837035
&signature=668eea80a7f6654a7ec65a74583bbacbc2edc6b5

RESPONSE:

<?xml version="1.0" encoding="UTF-8"?>
<restvalueresponse>
  <state>ready</state>
</restvalueresponse>