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

From Safe Creative API
Jump to navigation Jump to search
w>Jguillo
No edit summary
m 8 revisions imported
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
To register a work with reference links, specify link1, link2,... parameters in [[work.register]]
To register a work with reference links, specify link1, link2,... parameters in [[work.register]]


= Syntax =
Link parameters have the following syntax:
Link parameters have the following syntax:
URL|Title|type
 
<code>linkN=URL|Title|type</code>


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)
Line 9: Line 11:


<pre>
<pre>
http://en.safecreative.net/about|About Safe Creative|INFO
link1=http://en.safecreative.net/about|About Safe Creative|INFO
</pre>
</pre>
= Example =


REQUEST:
REQUEST:
Line 23: Line 27:
&linkextra2=http%3A%2F%2Fwww.altavista.com%2F%7CMy+extra+info+site+2%7CINFO
&linkextra2=http%3A%2F%2Fwww.altavista.com%2F%7CMy+extra+info+site+2%7CINFO
&noncekey=fft5xnba9x4a2sqq6sj4u3mw
&noncekey=fft5xnba9x4a2sqq6sj4u3mw
&text=A+extended+info+registration+sample
&text=A+extended+info+registration+example
&title=Sample
&title=Example
&worktype=article
&worktype=article
&ztime=1271749862665
&ztime=1271749862665

Latest revision as of 08:07, 7 May 2021

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>