https://github.com/csidirop/zenodoconnector
Usage of Zenodos API
https://github.com/csidirop/zenodoconnector
Last synced: about 1 year ago
JSON representation
Usage of Zenodos API
- Host: GitHub
- URL: https://github.com/csidirop/zenodoconnector
- Owner: csidirop
- License: gpl-3.0
- Created: 2025-03-19T12:58:26.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-19T14:11:08.000Z (about 1 year ago)
- Last Synced: 2025-03-19T14:33:57.249Z (about 1 year ago)
- Language: Shell
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ZenodoConnector
ZenodoConnector is a shell script designed to facilitate interactions with [Zenodo's](https://zenodo.org/) REST API. It enables users to automate tasks such as uploading files, creating records, and managing deposits on Zenodo, a free and open repository for research data.
## Features
- Upload files to Zenodo
- Create and manage records
- Automate deposits
## Prerequisites
- Unix-based operating system
- cURL installed
- A Zenodo account
- Zenodo API token (available from your Zenodo account settings)
## Usage
1. Clone this repository: `git clone https://github.com/csidirop/ZenodoConnector.git`
2. Navigate to the repository directory:`cd ZenodoConnector`
3. Make the script executable: `chmod +x zenodo_connector.sh`
4. Run the script with the necessary parameters: `./zenodo_connector.sh [options]`
Replace `[options]` with the appropriate flags and arguments as per your requirements.
### Options
#### General:
```bash
./zenodo_connector.sh --mode=[init|upload|discard|publish] --record_id=[id] --file=[file] --access_token=[path/to/token|token]
```
#### Example:
```bash
# Create a new record:
./zenodo_connector.sh --mode=init --access_token=[token]
# Upload a file to an existing record:
./zenodo_connector.sh --mode=upload --record_id=1234 --file=path/to/example.txt --access_token=[path/to/tokenfile]
# Discard a record:
./zenodo_connector.sh --mode=discard --record_id=1234 --access_token=[path/to/tokenfile]
# Publish a record:
./zenodo_connector.sh --mode=publish --record_id=1234 --access_token=[path/to/tokenfile]
```
## License
This project is licensed under the GPL-3.0 License. See the [LICENSE](LICENSE) file for more details.