Sha256: c27fb3d51f3f1d20d340bb88dfb734f14306db4dce0a75250f43e37be2c96089

Contents?: true

Size: 473 Bytes

Versions: 2

Compression:

Stored size: 473 Bytes

Contents

# frozen_string_literal: true

$LOAD_PATH.unshift File.expand_path("../lib", __dir__)
require "awesome_print"
require "archivesspace/client"

# official sandbox
config = ArchivesSpace::Configuration.new(
  {
    base_uri: "http://sandbox.archivesspace.org/api",
    base_repo: "",
    username: "admin",
    password: "admin",
    page_size: 50,
    throttle: 0,
    verify_ssl: false
  }
)

client = ArchivesSpace::Client.new(config).login
puts client.get("version").body

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
archivesspace-client-0.3.0 examples/test_connection.rb
archivesspace-client-0.2.0 examples/test_connection.rb