Created
May 8, 2015 13:39
-
-
Save paluchas/4b645924b6bb6734198c to your computer and use it in GitHub Desktop.
DataCite via curl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Register DOI metadata first, pass metadata as external @file | |
curl -v -i --basic -u 'BL.USER:PASSXXX' \ | |
--header 'Content-Type:application/xml;charset=UTF-8' \ | |
--data-binary @datacite-example-full-v3.1.xml \ | |
--request POST https://test.datacite.org/mds/metadata | |
# Register DOI with its landing page, pass parameters in external via @file | |
curl -v -i --basic -u 'BL.USER:PASXXX' \ | |
--header 'Content-Type:text/plain;charset=UTF-8' \ | |
--data-binary @example-full-du-test.doi \ | |
--request POST https://test.datacite.org/mds/doi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment