How to: Register a work with links: Difference between revisions

From Safe Creative API
Jump to navigation Jump to search
w>Jguillo
(Created page with 'To register a work with reference links, specify link1, link2,... parameters in work.register Link parameters have the following syntax: URL|Title|type Where type can be I…')
 
w>Jguillo
No edit summary
Line 6: Line 6:
Where type can be INFO (for reference links) or DOWNLOAD (for links to external download sites)
Where type can be INFO (for reference links) or DOWNLOAD (for links to external download sites)


For example:
<pre>
http://en.safecreative.net/about|About Safe Creative|INFO
</pre>


REQUEST:
REQUEST:

Revision as of 11:07, 6 May 2010

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

Link parameters have the following syntax:

URL|Title|type

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

For example:

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

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+sample
&title=Sample
&worktype=article
&ztime=1271749862665
&signature=eeb5dd9acce0e70f35a3814183714dcb60f6aa97

RESPONSE:

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