Skip to content

Instantly share code, notes, and snippets.

@paluchas
Created May 8, 2015 13:39
Show Gist options
  • Save paluchas/4b645924b6bb6734198c to your computer and use it in GitHub Desktop.
Save paluchas/4b645924b6bb6734198c to your computer and use it in GitHub Desktop.
DataCite via curl
# 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