How to: Register a work with links

From Safe Creative API
Revision as of 08:50, 14 May 2010 by w>Jguillo
Jump to navigation Jump to search

To register a work with reference links, specify link1, link2,... parameters in work.register

Syntax

Link parameters have the following syntax:

linkN=URL|Title|type

Where type can be INFO (for reference links) or DOWNLOAD (for links to external download sites)

For example:

link1=http://en.safecreative.net/about|About Safe Creative|INFO

Example

REQUEST:

https://api.safecreative.org/v2/
?authkey=1i5g2aaf2bz09lyo867cuimqg
&component=work.register
&excerpt=Use+links+of+type+DOWNLOAD+or+INFO
&link1=http%3A%2F%2Fwww.yahoo.com%2F%7CMy+alternative+download+site%7CDOWNLOAD
&link2=http%3A%2F%2Fwww.altavista.com%2F%7CMy+extra+info+site%7CINFO
&linkextra1=http%3A%2F%2Fwww.yahoo.com%2F%7CMy+alternative+download+site+2%7CDOWNLOAD
&linkextra2=http%3A%2F%2Fwww.altavista.com%2F%7CMy+extra+info+site+2%7CINFO
&noncekey=fft5xnba9x4a2sqq6sj4u3mw
&text=A+extended+info+registration+example
&title=Example
&worktype=article
&ztime=1271749862665
&signature=eeb5dd9acce0e70f35a3814183714dcb60f6aa97

RESPONSE:

<?xml version="1.0" encoding="UTF-8"?>
<workregistry>
  <code>1004200146147</code>
</workregistry>