Sha256: f68cc706cca124a2dcb04fef1e2233d2724f28c187c453803ea91500f9b0f863

Contents?: true

Size: 522 Bytes

Versions: 3

Compression:

Stored size: 522 Bytes

Contents

$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
require 'awesome_print'
require 'archivesspace/client'

# default client connection: localhost:8089, admin, admin
client = ArchivesSpace::Client.new.login
client.config.throttle 0.5

client.config.base_repo = "repositories/2"
# date -d '2015-07-01 00:00:00' +'%s' # 1435734000
client.resources("ead", { query: { modified_since: "1435734000" } }) do |ead|
  # for now we are just printing ...
  # but you would actually write to a zip file or whatever
  ap ead
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
archivesspace-client-0.1.2 examples/export.rb
archivesspace-client-0.1.1 examples/export.rb
archivesspace-client-0.1.0 examples/export.rb