dataciteapi is a command line program run from a shell like Bash. It allows you to retrieve JSON works objects from the DataCite API via DataCites REST API.
This is generalized instructions for a release. For deployment suggestions see NOTES.md
If you are running macOS or Linux you can install released versions of crossrefapi with the following curl command.
curl https://caltechlibrary.github.io/crossrefapi/installer.sh
On Windows the install command in Powershell is
irm https://caltechlibrary.github.io/crossrefapi/installer.ps1 | iex
Compiled versions are available for Mac OS X (amd64 and M1 processor, macos-amd64, macos-arm64), Linux (amd64 process, linux-amd64), Windows (amd64 processor, windows-amd64) and Rapsberry Pi (arm7 processor, raspbian-arm7)
VERSION_NUMBER is a symantic version number (e.g. v0.1.2)
For all the released version go to the project page on Github and click latest release
https://github.com/caltechlibrary/dataciteapi/releases/latest
Platform | Zip Filename |
---|---|
Windows | dataciteapi-VERSION_NUMBER-windows-amd64.zip |
Mac OS X | dataciteapi-VERSION_NUMBER-macos-amd64.zip |
Linux/Intel | dataciteapi-VERSION_NUMBER-linux-amd64.zip |
Raspbery Pi | dataciteapi-VERSION_NUMBER-raspbian-arm7.zip |
Here’s an example of the commands run in the Terminal App after downloading the zip file.
cd Downloads/
unzip dataciteapi-*-macos-amd64.zip
mkdir -p $HOME/bin
cp -v bin/* $HOME/bin/
export PATH=$HOME/bin:$PATH
dataciteapi -version
Here’s an example of the commands run in from the Bash shell on Windows 10 after downloading the zip file.
cd Downloads/
unzip dataciteapi-*-windows-amd64.zip
mkdir -p $HOME/bin
cp -v bin/* $HOME/bin/
export PATH=$HOME/bin:$PATH
dataciteapi -version
Here’s an example of the commands run in from the Bash shell after downloading the zip file.
cd Downloads/
unzip dataciteapi-*-linux-amd64.zip
mkdir -p $HOME/bin
cp -v bin/* $HOME/bin/
export PATH=$HOME/bin:$PATH
dataciteapi -version
Released version is for a Raspberry Pi 2 or later use (i.e. requires ARM 7 support).
Here’s an example of the commands run in from the Bash shell after downloading the zip file.
cd Downloads/
unzip dataciteapi-*-raspbian-arm7.zip
mkdir -p $HOME/bin
cp -v bin/* $HOME/bin/
export PATH=$HOME/bin:$PATH
dataciteapi -version
dataciteapi is “go gettable”. Use the “go get” command to download the dependant packages as well as dataciteapi’s source code.
go get -u github.com/caltechlibrary/dataciteapi/...
Or clone the repstory and then compile
cd
git clone https://github.com/caltechlibrary/dataciteapi src/github.com/caltechlibrary/dataciteapi
cd src/github.com/caltechlibrary/dataciteapi
make
make test
make install
Compilation assumes go v1.16