Unverified Commit 1e20de91 authored by Stephen Rees's avatar Stephen Rees Committed by GitHub
Browse files

Update README.md

parent aac50d28
......@@ -50,9 +50,15 @@ $zenodo_file = $deposition->add_file('path_to_file');
$zenodo_file->filename('new name');
$zenodo_file->update_file();
//provide metadata for the deposition
//provide minimum required metadata for the deposition (per API)
$deposition->metadata->upload_type('other');
$deposition->metadata->publication_date(date('Y-m-d'));
$deposition->metadata->title('My First Deposition');
$creator = new stdClass();
$creator->name = 'Family name, Given names';
$deposition->metadata->creators(array($creator));
$deposition->metadata->description('This is an example of how to create a deposition with the Zenodo API');
$deposition->metadata->access_right('closed');
$deposition->metadata->keywords(array('first','example'));
$deposition->update_deposition();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment