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

Querying using email or name causes 400 Bad Request error #80

Open sdc50 opened 6 years ago

sdc50 commented 6 years ago

The documentation contains the following:

>>> # Discover via creator, group, user, owner
>>> resources = hs.resources(creator="email or name")
>>> resources = hs.resources(user="email or name")
>>> resources = hs.resources(owner="email or name")
>>> resources = hs.resources(author="email or name")
>>> resources = hs.resources(group="id or name")

In addition to some of these arguments not working (see #75), those that do work only accept the "username". I get a 400 Bad Request error when trying to use email or name.

aphelionz commented 6 years ago

For now all I can do is update the docs to reflect this. Thanks for pointing it out.

aphelionz commented 6 years ago

@sdc50 Version 1.2.12 was deployed and we are going to schedule the rest of the updates and bug fixes you've made issues for soon.