Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
dev:api_user_docs [2010/04/27 17:57] kddev:api_user_docs [2011/03/04 18:43] dstillman
Line 264: Line 264:
 ==== Get an Item's Attachments === ==== Get an Item's Attachments ===
  
-Here's some example code to get the full text of html and pdf items in storage:+Here's some example code to get the full text of html and pdf items in storage and puts the data in an array:
  
 <code javascript> <code javascript>
- 
 var item = 'some item' ; // some Zotero Item obtained previously var item = 'some item' ; // some Zotero Item obtained previously
 var fulltext = new Array; var fulltext = new Array;
Line 280: Line 279:
     }     }
 } }
- 
- 
- 
 </code> </code>
  
Line 309: Line 305:
   writeFile("/tmp/boo.txt", "boo\n");    writeFile("/tmp/boo.txt", "boo\n"); 
 </code> </code>
 +
 +Or just use Zotero.File.putContents(str)...
  
 ==== TODO ==== ==== TODO ====
dev/api_user_docs.txt · Last modified: 2017/11/12 19:53 by 127.0.0.1