https://github.com/no-reply/ruby-ezid
Ruby EZID API Client
https://github.com/no-reply/ruby-ezid
Last synced: about 1 year ago
JSON representation
Ruby EZID API Client
- Host: GitHub
- URL: https://github.com/no-reply/ruby-ezid
- Owner: no-reply
- Created: 2012-09-22T01:15:26.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2013-08-11T03:09:38.000Z (almost 13 years ago)
- Last Synced: 2024-10-13T20:06:25.519Z (almost 2 years ago)
- Language: Ruby
- Size: 138 KB
- Stars: 1
- Watchers: 2
- Forks: 6
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
EZID API
========
[](http://travis-ci.org/no-reply/bagit)
https://rubygems.org/gems/ezid
This API is part of work to integrate EZID into the OregonDigital Hydra DAMS system in development. It is currently in use for development on that system; we don't recommend it for production use at this time.
session = Ezid::ApiSession.new
# mint an id with the test account
i = session.mint()
i.identifier # => "ark:/99999/fk4058n1x"
# or specify your own id
i = session.create('monkey')
i.identifier # => "ark:/99999/fk4monkey"
The ApiSession object will also accept a username, password, identifer scheme and naa like this: Ezid::ApiSession.new('username', 'password', :doi, '12345')
License
-------
[](http://creativecommons.org/publicdomain/zero/1.0/)