How to: Register a work with links: Difference between revisions
Jump to navigation
Jump to search
w>Jguillo No edit summary |
w>Jguillo No edit summary |
||
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: | ||
linkN=URL|Title|type | linkN=URL|Title|type | ||
Line 11: | Line 12: | ||
link1=http://en.safecreative.net/about|About Safe Creative|INFO | link1=http://en.safecreative.net/about|About Safe Creative|INFO | ||
</pre> | </pre> | ||
= Sample = | |||
REQUEST: | REQUEST: |
Revision as of 11:08, 6 May 2010
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
Sample
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>