Hi, Zeno. Yes, that is correct. If you are going to interact directly with Okapi and other FOLIO APIs, I highly recommend reading the Okapi Guide and Reference.

   wayne

On Fri, Jun 7, 2019 at 3:38 AM Zeno Tajoli <zeno.tajoli@atcult.it> wrote:
Hi to all,

I read the script here:
https://dev.folio.org/tutorials/curriculum/06-vm-stable/#interact-via-curl
and the code of Vufind driver fro Folio here:
https://github.com/vufind-org/vufind/blob/master/module/VuFind/src/VuFind/ILS/Driver/Folio.php

If I have undestand well, to work with Folio Wweb service:

1)To login, service "$OKAPIURL/authn/login", I do not need any token header

2)To do anything else, I need to use the token header that I receive
with login

3)I can cache the value of the token but after sometime it becames
invalid, so I need to ask it again.

Is it correct ?
Do I have understand well ?

Bye
Zeno Tajoli


--
Zeno Tajoli
System Librarian

@CULT Srl
Via Quintino Sella, 33 - 00187 Roma
Tel +39 06 89873504 - Fax +39 06 89873496
zeno.tajoli@atcult.it

www.atcult.it

Questo messaggio è destinato alle sole persone indicate e può contenere
informazioni riservate.
Ogni altro uso del messaggio è vietato. Se avete ricevuto questa e-mail
per errore, siete pregati
di cancellare l'originale e comunicarcelo immediatamente via e-mail
all'indirizzo info@atcult.it

------------------------------------------------------
You received this message because you are subscribed to OLE Mailing List
"sysops-sig".
To unsubscribe from this list and stop receiving emails from it, follow
this link: http://www.simplelists.com/confirm.php?u=bgv2YVoyMpb9D89f2mzNI9NI2aBKg46q.
To post to this group, send email to
sysops-sig@ole-lists.openlibraryfoundation.org
<mailto:sysops-sig@ole-lists.openlibraryfoundation.org>.
Visit this group at
https://ole-lists.openlibraryfoundation.org<https://ole-lists.openlibraryfoundation.org>
.