Hi Ken,
There are various ways to do this. PCRUD is one of them.
If you already have the user object with user id, you can search for the
card by user id:
open-ils.pcrud.search.ac $authtoken, {"usr":$user_id}
This returns an actor.card (ac) object with a barcode field.
If you don't have the ID, you can fetch the user by username and flesh the
card object in the "card" field on the user.
open-ils.pcrud.search.au $authtoken, {"usrname":$username},
{"flesh":1,"flesh_fields":{"au":["card"]}}
Hope this helps,
-b
On Wed, Jan 20, 2016 at 10:04 AM, Ken Cox <[email protected]> wrote:
> I login to the android app (using OSRF via the gateway) using my
> username. How can I get my library card number? Is there a PCRUD
> interface for that? Having that number would make it easier for me to
> login to axis360 after I have found an e-book.
>
> Thanks,
> --
> -Ken
>