Work.upload.begin: Difference between revisions

From Safe Creative API
Jump to navigation Jump to search
w>Jguillo
No edit summary
w>Jguillo
No edit summary
Line 8: Line 8:
* '''Timestamp:''' Requires [[ztime parameter]]
* '''Timestamp:''' Requires [[ztime parameter]]
* '''Authorization level:''' ADD
* '''Authorization level:''' ADD
* '''API trust level''': Standard


= Parameters =  
= Parameters =  

Revision as of 07:37, 6 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
  • API trust level: Standard

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>