Merge branch 'update_api' into 'master'

update fetch methods

See merge request !19
4 jobs for master in 2 minutes and 8 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Install
passed #308547
install_py36

00:00:21

 
  Test
passed #308548
test_py36

00:00:39

33.0%
 
  Deploy
failed #308549
deploy_zenodo

00:01:07

 
  Test Container
skipped #308550
test_deploy_from_container
 
Name Stage Failure
failed
deploy_zenodo Deploy
  File "/usr/local/bin/upload_new_deposit", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/site-packages/zenodoci/upload_new_deposit.py", line 94, in main
path_file=full_path_file
File "/usr/local/lib/python3.6/site-packages/zenodoci/zenodoapi.py", line 121, in upload_file_entry
bucket_url = fetch.json()['links']['bucket'] # full url is recovered from fetch (GET) method
KeyError: 'links'
Cleaning up file based variables
ERROR: Job failed: exit code 1