https://github.com/no-reply/ezid_api
API tools for the California Digital Library's EZID service.
https://github.com/no-reply/ezid_api
Last synced: over 1 year ago
JSON representation
API tools for the California Digital Library's EZID service.
- Host: GitHub
- URL: https://github.com/no-reply/ezid_api
- Owner: no-reply
- License: unlicense
- Created: 2012-02-17T22:29:12.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2015-05-19T19:20:54.000Z (about 11 years ago)
- Last Synced: 2025-03-24T06:51:50.914Z (over 1 year ago)
- Language: Python
- Homepage:
- Size: 114 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
ezid.py - 0.2
API tools for EZID API (http://n2t.net/ezid/).
Start an API session with ezid_api.ApiSession(username, password, scheme, naa). If no username and password are provided, the ezid test api account is used.
testArk = ezid_api.ApiSession()
testArk.mint()
'ark:/99999/fk4wd4h51'
testArk.create('abc')
'ark:/99999/fk4abc'
testDoi = ezid_api.ApiSession(scheme='doi')
testDoi.mint()
'doi:10.5072/FK2B56MG3 | ark:/b5072/fk2b56mg3'
testDoi.create('abc')
'doi:10.5072/FK2ABC | ark:/b5072/fk2abc'
real = ezid_api.ApiSession('myacct', 'mypass', 'ark', '12345/6A')
real.create('abc')
'ark:/12345/6Aabc'