<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br></div><div><br></div><div>See this thread from January:   <a href="http://lyralists.lyrasis.org/pipermail/archivesspace_users_group/2015-January/001059.html">[Archivesspace_Users_Group] curl help</a></div><div><br></div><div>The API call you want is :</div><div><br></div><div>GET  /repositories/$REPO_ID/resource_descriptions/${ID}.xml?${PARAMS}</div><div><br></div><div>( where PARAMS may be something like: "include_daos=true&numbered_cs=true” )</div><div><br></div><div><br></div><div>There isn’t one call to export all resources: You have to first do a call to </div><div>GET  /repositories/$REPO_ID/resources?all_ids=true </div><div>and loop thru the id’s returned with something like:</div><div><br></div><div><br></div><div>for ID in $( curl -s -H "X-ArchivesSpace-Session: $session" "$REPO/repositories/$REPO_ID/resources?all_ids=true" | tail -1 | tr '[],' ' ' )<br>do</div><div>curl  [ . .  . ] </div><div><br></div><div><br></div><div><br></div><div>If you can directly login to the server, running the ead_export script may be easier. </div><div>I have seen problems though if there is anything wrong with the exported EAD, you will</div><div>get incomplete data when Nokogiri silently chokes on it. If you use the API calls, </div><div>you will get a complete copy of the bad XML.  ( I saw this in the case I noted where</div><div>ASpace inserts <p> tags incorrectly and exports malformed XML. ) </div><div><br></div><div>— Steve Majewski</div><div><br></div><div><br></div><div><br><div><div>On Mar 18, 2015, at 12:52 PM, Mary Willoughby <<a href="mailto:smirk@uga.edu">smirk@uga.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi everyone,<br><span class="Apple-tab-span" style="white-space:pre">      </span>I'm trying to bulk export EAD as xml using cURL to communicate with the backend of our ArchivesSpace instance. I've gotten through the very basic steps-- can connect, get session token, export session token, login, and get details on specific repositories etc. What I'm a little confused about is the specific syntax required to do a bulk export of all the EAD from a given repository. Does anyone know of any documentation/examples of this, or has anybody tried it and had it work who would share the commands they used?  I've looked at the thread from back in January and the HM screencasts about the backend on youtube, and those have been a great help in getting this far, but unfortunately I don't know enough about cURL to come up with the string I need on my own. At least not so far.<br><br>Thanks,<br>Mary Willoughby<br><br>Digital Library of Georgia<br>_______________________________________________<br>Archivesspace_Users_Group mailing list<br><a href="mailto:Archivesspace_Users_Group@lyralists.lyrasis.org">Archivesspace_Users_Group@lyralists.lyrasis.org</a><br>http://lyralists.lyrasis.org/mailman/listinfo/archivesspace_users_group<br></blockquote></div><br></div></body></html>