Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CPS-VO
ZenodoPHP
Commits
1e20de91
Unverified
Commit
1e20de91
authored
May 16, 2020
by
Stephen Rees
Committed by
GitHub
May 16, 2020
Browse files
Update README.md
parent
aac50d28
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
1e20de91
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment