<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body>A new request with request id 8323 has been created by koha-devel-request@lists.koha-community.org. Short info on the request is : <br><br>Title : Koha-devel Digest, Vol 200, Issue 14<br>Category : <br>Description : <div>Send Koha-devel mailing list submissions to<br>    koha-devel@lists.koha-community.org<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>    https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>or, via email, send a message with subject or body 'help' to<br>    koha-devel-request@lists.koha-community.org<br><br>You can reach the person managing the list at<br>    koha-devel-owner@lists.koha-community.org<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Koha-devel digest..."<br><br><br>Today's Topics:<br><br>   1. Checkouts API Question (Stephen Graham)<br>   2. Re: Checkouts API Question (Arthur)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Tue, 12 Jul 2022 14:06:43 +0000<br>From: Stephen Graham <s.graham4@herts.ac.uk><br>To: koha-devel <koha-devel@lists.koha-community.org><br>Subject: [Koha-devel] Checkouts API Question<br>Message-ID:<br>    <LO0P265MB2620EAAD46E0CA69B7CBA2BEE7869@LO0P265MB2620.GBRP265.PROD.OUTLOOK.COM><br>    <br>Content-Type: text/plain; charset="windows-1252"<br><br>Hi All - we are on 21.11, and would like to include patron account data in our bespoke University mobile app. I was planning on using the RESTful API to get the data. What we would like is simply a list of titles (plus author and ISBN) along with the due back dates.  I'm struggling , when looking at https://api.koha-community.org/21.11.html, to see how this could be done without using lots of API calls. Would I have to do something like the following:<br><br><br>  *   Call /checkouts to get a list of checkouts from the patron<br>  *   Iterate over the checkout_id and call /checkouts/$id for each checkout<br>  *   I cannot see any Biblio references in the returned data, so I'd have to then grab the biblio_id from the /items/$id endpoint and then call the /biblios endpoint to get the actual bibliographic data.<br><br>If the patron had 10 items out this would be at least 30 calls to get the bib data. Is that what I would have to do, or am I missing something - like a header or extra query which would return all the info I require from the first endpoint call?<br><br>Any advice/pointers would be much appreciated!!<br><br>Cheers, Stephen<br><br>--------------------------------------<br>Stephen Graham<br>Library Technology Consultant<br>Library and Computing Services<br><br>University of Hertfordshire<br>Hatfield, Hertfordshire, AL10 9AB<br><br>Email: s.graham4@herts.ac.uk<mailto:s.graham4@herts.ac.uk><br>Website: herts.ac.uk<br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20220712/2ae801fe/attachment-0001.htm><br><br>------------------------------<br><br>Message: 2<br>Date: Tue, 12 Jul 2022 16:14:54 +0200<br>From: Arthur <arthur.suzuki@biblibre.com><br>To: koha-devel@lists.koha-community.org<br>Subject: Re: [Koha-devel] Checkouts API Question<br>Message-ID: <25098859-8d62-d886-9a56-87eb0311ba7b@biblibre.com><br>Content-Type: text/plain; charset="utf-8"; Format="flowed"<br><br>Hi Stephen,<br><br>Although it's quite old, the ILS-DI interface is still available in 21.11.<br><br>You can check the GetPatronInfo with "show_loans=1" parameter (perhaps <br>by default?) to get the loans.<br><br>Then you also get bibliographic information about those loans in one API <br>call.<br><br>However, ILS-DI is not secure by design, there is no authentication, <br>which means, when you activate ILS-DI it is open to everyone to get <br>personnal information on any of your patrons by scraping with random <br>biblionumber, just be aware of this a put decent security (we use IP <br>restriction which is not ideal but minimum required IMO)<br><br>Best,<br><br>Arthur Suzuki<br><br>Developper @BibLibre<br><br>On 12/07/2022 16:06, Stephen Graham wrote:<br>><br>> Hi All – we are on 21.11, and would like to include patron account <br>> data in our bespoke University mobile app. I was planning on using the <br>> RESTful API to get the data. What we would like is simply a list of <br>> titles (plus author and ISBN) along with the due back dates.  I’m <br>> struggling , when looking at <br>> https://api.koha-community.org/21.11.html, to see how this could be <br>> done without using lots of API calls. Would I have to do something <br>> like the following:<br>><br>>   * Call /checkouts to get a list of checkouts from the patron<br>>   * Iterate over the checkout_id and call /checkouts/$id for each checkout<br>>   * I cannot see any Biblio references in the returned data, so I’d<br>>     have to then grab the biblio_id from the /items/$id endpoint and<br>>     then call the /biblios endpoint to get the actual bibliographic data.<br>><br>> If the patron had 10 items out this would be at least 30 calls to get <br>> the bib data. Is that what I would have to do, or am I missing <br>> something – like a header or extra query which would return all the <br>> info I require from the first endpoint call?<br>><br>> Any advice/pointers would be much appreciated!!<br>><br>> Cheers, Stephen<br>><br>> --------------------------------------<br>><br>> Stephen Graham<br>><br>> Library Technology Consultant<br>><br>> Library and Computing Services<br>><br>> University of Hertfordshire<br>><br>> Hatfield, Hertfordshire, AL10 9AB<br>><br>> Email: s.graham4@herts.ac.uk <mailto:s.graham4@herts.ac.uk><br>><br>> Website: herts.ac.uk<br>><br>><br>> _______________________________________________<br>> Koha-devel mailing list<br>> Koha-devel@lists.koha-community.org<br>> https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>> website :https://www.koha-community.org/<br>> git :https://git.koha-community.org/<br>> bugs :https://bugs.koha-community.org/<br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20220712/e92bad71/attachment.htm><br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<br>Koha-devel mailing list<br>Koha-devel@lists.koha-community.org<br>https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>website : https://www.koha-community.org/<br>git : https://git.koha-community.org/<br>bugs : https://bugs.koha-community.org/<br><br><br>------------------------------<br><br>End of Koha-devel Digest, Vol 200, Issue 14<br>*******************************************<br></div><br><br>NOTE: You are receiving this mail because, the Requester/Technician wanted you to get notified on this request creation.<br></body></html>