Difference between revisions of "Work.upload.begin"

From Safe Creative API
Jump to navigation Jump to search
w>Jguillo
m (6 revisions imported)
 
(No difference)

Latest revision as of 08:07, 7 May 2021

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
  • API server: Upload server returned by work.upload.lookup

Parameters

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

* Required parameter

Returns

  • restvalueresponse
    • state: ready

Example

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>