Sha256: afc4412ab9525a73826ccb95d950dd7aeb8eb7367a45b16c05038f18f4c7ba09

Contents?: true

Size: 474 Bytes

Versions: 2

Compression:

Stored size: 474 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: "https://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.4.1 examples/test_connection.rb
archivesspace-client-0.4.0 examples/test_connection.rb