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
916ac27e
Unverified
Commit
916ac27e
authored
May 16, 2020
by
Stephen Rees
Committed by
GitHub
May 16, 2020
Browse files
Update README.md
parent
7de1d350
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
916ac27e
...
...
@@ -16,12 +16,12 @@ $collection_obj = new ZenodoDepositionCollection($connection);
try
{
$collection
=
$collection_obj
->
list_depositions
();
//returns an array of deposition objects
}
catch
(
Http
RuntimeException
$e
){
}
catch
(
RuntimeException
$e
){
//you should only have to catch the runtime exception the first time you request data from Zenodo
echo
$e
->
getMessage
();
echo
var_export
(
$connection
->
last_response
());
//this is where you will find details on any errors
return
;
}
catch
(
HttpResponse
Exception
$e
){
}
catch
(
Logic
Exception
$e
){
//you should catch a response exception every time you request data from Zenodo.
echo
$e
->
getMessage
();
echo
var_export
(
$connection
->
last_response
());
...
...
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