Work.get.private: Difference between revisions

From Safe Creative API
Jump to navigation Jump to search
w>Jguillo
No edit summary
m 12 revisions imported
 
(10 intermediate revisions by 3 users not shown)
Line 6: Line 6:
* '''Timestamp:''' Requires [[ztime parameter]]
* '''Timestamp:''' Requires [[ztime parameter]]
* '''Authorization level:''' GET
* '''Authorization level:''' GET
* '''API trust level''': Standard


= Parameters =  
= Parameters =  
Line 22: Line 23:
** '''title''': Work title
** '''title''': Work title
** '''entrydate''': Work registration date
** '''entrydate''': Work registration date
** '''updatedate''': Work update date
** '''state''': Work state (see [[About works]])
** '''state''': Work state (see [[About works]])
** '''excerpt''': Work excerpt or description
** '''excerpt''': Work excerpt or description
** '''observations''': Work private notes
** '''observations''': Work private notes
** '''tags''': Comma-separated list of tags
** '''tags''': Comma-separated list of tags
** '''thumbnail''': URL to the work thumbnail (if any)
** '''mimetype''': Work mime type
** '''links''': Work links
** '''links''': Work links
*** '''link''': Link URL.  
*** '''link''': Link URL.  
Line 41: Line 45:
*** '''endDate''': License expiration date (only for time-limited licenses)
*** '''endDate''': License expiration date (only for time-limited licenses)
*** '''human-url''': URL to license text
*** '''human-url''': URL to license text
*** '''features''': License features (see [[user.licenses]]
*** '''features''': License features (see [[user.licenses]])
** '''professionalstatus''': This work has enabled professional service (true|false)
** '''allowdownload''': This work can be downloaded (true|false)
** '''allowdownload''': This work can be downloaded (true|false)
** '''allowevaluation''': An evaluation version of this work can be downloaded (true|false)
** '''registrypublic''': Work registration is public (true|false)
** '''registrypublic''': Work registration is public (true|false)
** '''usealias''': Work is registered under pseudonym (true|false)
** '''usealias''': Work is registered under pseudonym (true|false)
Line 56: Line 62:
*** '''name''': Work type group name
*** '''name''': Work type group name


 
= Example =
 
= Sample =
REQUEST:
REQUEST:


Line 76: Line 80:
   <title>My first long registration</title>
   <title>My first long registration</title>
   <entrydate>2010-04-20T07:50:43Z</entrydate>
   <entrydate>2010-04-20T07:50:43Z</entrydate>
  <updatedate>2010-08-26T03:00:00Z</updatedate>
   <state>PRE_REGISTERED</state>
   <state>PRE_REGISTERED</state>
   <excerpt>Very long text about registry philosophy</excerpt>
   <excerpt>Very long text about registry philosophy</excerpt>
   <observations>Obs 2</observations>
   <observations>Obs 2</observations>
   <tags>tag1, tag2</tags>
   <tags>tag1, tag2</tags>
  <mimetype>text/plain</mimetype>
   <license>
   <license>
     <code>http://creativecommons.org/licenses/nc-sampling+/1.0/</code>
     <code>http://creativecommons.org/licenses/nc-sampling+/1.0/</code>
Line 94: Line 100:
     </features>
     </features>
   </license>
   </license>
  <professionalstatus>false</professionalstatus>
   <allowdownload>true</allowdownload>
   <allowdownload>true</allowdownload>
   <registrypublic>true</registrypublic>
   <registrypublic>true</registrypublic>
  <languagecode>EN</languagecode>
   <usealias>false</usealias>
   <usealias>false</usealias>
   <userauthor>true</userauthor>
   <userauthor>true</userauthor>

Latest revision as of 08:07, 7 May 2021

Returns all data of a user's work. This includes private data not available to the public.

Info

  • Component name: work.get.private
  • Signature: Requires signature using the authkey's private key
  • Timestamp: Requires ztime parameter
  • Authorization level: GET
  • API trust level: Standard

Parameters

  • authkey*: User's authorization key
  • ztime*: Z-Timestamp
  • code*: Work code
  • locale: Locale for work type, license names,...

* Required parameter

Returns

Some works include more information than others. Not all fields will be present in all works.

  • work
    • code: Safe Creative work code
    • title: Work title
    • entrydate: Work registration date
    • updatedate: Work update date
    • state: Work state (see About works)
    • excerpt: Work excerpt or description
    • observations: Work private notes
    • tags: Comma-separated list of tags
    • thumbnail: URL to the work thumbnail (if any)
    • mimetype: Work mime type
    • links: Work links
      • link: Link URL.
      • name: Link title (XML attribute)
      • type: Link type (INFO|DOWNLOAD) (XML attribute)
    • relations: Work relations with other works
      • relation: List of works related of a type (VERSION|DERIVATION|COMPOSITION|RELATED as XML attribute)
        • work: Work related to this work
          • name: Related work title (XML attribute)
          • code: Related work code (XML attribute)
    • license: Work license
      • code: License code
      • name: License name
      • shortname: License short name
      • endDate: License expiration date (only for time-limited licenses)
      • human-url: URL to license text
      • features: License features (see user.licenses)
    • professionalstatus: This work has enabled professional service (true|false)
    • allowdownload: This work can be downloaded (true|false)
    • allowevaluation: An evaluation version of this work can be downloaded (true|false)
    • registrypublic: Work registration is public (true|false)
    • usealias: Work is registered under pseudonym (true|false)
    • userauthor: User is author of this work (true|false)
    • userrights: User is a rights holder of this work (true|false)
    • useralias: User pseudonym this work is registered under
    • languagecode: Work language code (see work.languages)
    • worktype: Work type (see work.types, work.types.tree)
      • code: Work type code
      • name: Work type name
    • worktypegroup: Work type group (see work.types.tree)
      • code: Work type group code
      • name: Work type group name

Example

REQUEST:

https://api.safecreative.org/v2/
?component=work.get.private
&authkey=1i5g2aaf2bz09lyo867cuimqg
&code=1004200146116
&ztime=1271749847821
&signature=40c6cabb341a463e4d824e702b1c4606692fa293

RESPONSE:

<?xml version="1.0" encoding="UTF-8"?>
<work>
  <code>1004200146116</code>
  <title>My first long registration</title>
  <entrydate>2010-04-20T07:50:43Z</entrydate>
  <updatedate>2010-08-26T03:00:00Z</updatedate>
  <state>PRE_REGISTERED</state>
  <excerpt>Very long text about registry philosophy</excerpt>
  <observations>Obs 2</observations>
  <tags>tag1, tag2</tags>
  <mimetype>text/plain</mimetype>
  <license>
    <code>http://creativecommons.org/licenses/nc-sampling+/1.0/</code>
    <name>Creative Commons NonCommercial Sampling Plus 1.0</name>
    <shortname>CC nc-sampling+-1.0</shortname>
    <endDate></endDate>
    <human-url>http://creativecommons.org/licenses/nc-sampling+/1.0/legalcode</human-url>
    <features>
      <derivations>YES</derivations>
      <distribution>YES</distribution>
      <recognition>YES</recognition>
      <commercial>NO</commercial>
      <timelimited>NOT_APPLICABLE</timelimited>
    </features>
  </license>
  <professionalstatus>false</professionalstatus>
  <allowdownload>true</allowdownload>
  <registrypublic>true</registrypublic>
  <languagecode>EN</languagecode>
  <usealias>false</usealias>
  <userauthor>true</userauthor>
  <userrights>true</userrights>
  <worktype>
    <code>article</code>
    <name>Article</name>
  </worktype>
  <worktypegroup>
    <code>Literary</code>
    <name>Literary</name>
  </worktypegroup>
</work>