This web service does not fully support Internet Explorer versions below IE9. If you are using an earlier version, some features may be displayed incorrectly.

RepOD API Guide

This instruction explains how to use the RepOD API to upload files to the repository. We recommend using the API if the size of a single file exceeds 200 MB.

  1. Please install the Python packages:
    requests-toolbelt
    clint

    If you are using Debian/Ubuntu GNU/Linux:
    sudo pip install requests-toolbelt
    sudo pip install clint

  2. Go to the user interface (UI) and create a draft of your dataset.
  3. Copy your API key from your user profile: https://repod.pon.edu.pl/user/%username%
    Download and modify the following script: upload_with_toolbelt.py
    Script modifications:
    APIKEY
    should be your private key, copied from your user profile (https://repod.pon.edu.pl/user/%username%)
    package_id
    identifier of your dataset
    name
    name of the resource (file) that you want to upload
    url
    URL of the resource (file)
    upload
    ('filename', open("/folder/filename.txt", 'rb')
  4. Run the script.

The full CKAN API documentation is available here: http://docs.ckan.org/en/latest/api/