hydroshare / hs_restclient

Python client for the https://www.hydroshare.org REST API
BSD 3-Clause "New" or "Revised" License
6 stars 8 forks source link

support createReferencedFile #90

Open zhiyuli opened 5 years ago

zhiyuli commented 5 years ago

hs.createReferencedFile(pid=resource_id, path='data/contents', name='landing_page.url', ref_url=base_url + page['landing_page'])

1) path='data/contents' should be default 2) file_id = hs.createReferencedFile() should return file_id if the creation is done, otherwise None or throws out an exception