Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
dev:web_api:v3:fulltext_content [2014/06/10 03:23] – external edit 127.0.0.1dev:web_api:v3:fulltext_content [2022/06/23 15:53] (current) – [Zotero Web API: Full-Text Content Requests] dstillman
Line 1: Line 1:
-====== Full-Text Content Requests ======+====== Zotero Web API Full-Text Content Requests ======
  
-This page documents the methods to access full-text content of Zotero items via the [[start|Zotero Server API]]. See the [[Read Requests]] page for basic information on accessing the API, including possible HTTP status codes not listed here.+This page documents the methods to access full-text content of Zotero items via the [[start|Zotero Web API]]. See the [[Basics]] page for basic information on accessing the API, including possible HTTP status codes not listed here.
  
 ==== Getting new full-text content ==== ==== Getting new full-text content ====
  
-  GET <userOrGroupPrefix>/fulltext?newer=<version> +  GET <userOrGroupPrefix>/fulltext?since=<version>
- +
-''<itemKey>'' should correspond to an existing attachment item. ''<version>'' should be the ''Last-Modified-Version'' returned from the previous check, or 0 if none.+
  
   Content-Type: application/json   Content-Type: application/json
Line 22: Line 20:
 ^ Common responses ^^ ^ Common responses ^^
 | ''200 OK'' | Full-text content was successfully retrieved. | | ''200 OK'' | Full-text content was successfully retrieved. |
-| ''400 Bad Request'' | The 'newer' parameter was not provided. |+| ''400 Bad Request'' | The 'since' parameter was not provided. |
  
 ==== Getting an item's full-text content ==== ==== Getting an item's full-text content ====
Line 39: Line 37:
 }</code> }</code>
  
-''indexedChars'' and ''totalChars'' may be provided instead of ''indexedPages'' and ''totalPages''.+''indexedChars'' and ''totalChars'' are used for text documents, while ''indexedPages'' and ''totalPages'' are used for PDFs.
  
 ^ Common responses ^^ ^ Common responses ^^
Line 58: Line 56:
 ''<itemKey>'' should correspond to an existing attachment item. ''<itemKey>'' should correspond to an existing attachment item.
  
-''indexedPages'' and ''totalPages'' can be provided instead of ''indexedChars'' and ''totalChars''.+For text documents, include ''indexedChars'' and ''totalChars''. For PDFs, include ''indexedPages'' and ''totalPages''.
  
 ^ Common responses ^^ ^ Common responses ^^
Line 67: Line 65:
 ==== Searching for items by full-text content ==== ==== Searching for items by full-text content ====
  
-See the ''q'' and ''qmode'' [[read_requests#search_parameters|search parameters]].+See the ''q'' and ''qmode'' [[basics#search_parameters|search parameters]].
dev/web_api/v3/fulltext_content.1402384989.txt.gz · Last modified: 2015/11/03 15:05 (external edit)