You are not logged in.
Pages: 1
I'm trying to make the script connection (curl) with the GLPI api
However, there are 2 tabs that tell me "app_token", which one to use?(there is one that is in settings / preference and another one found in GENERAL> API)
I tested them both and always get the error "[" ERROR_WRONG_APP_TOKEN_PARAMETER "," the app_token parameter seems to be invalid; see documentation in your browser at http://GLPI/apirest.php/#ERROR_WRONG_APP_TOKEN_PARAMETER "]"
Offline
app_token is set in general>api depending on the IP that is Calling API.
is app token passed in headers or in url ?
Trouver la panne avant de réparer...
GLPI10.0.16 (ubuntu 22.04 PHP8.1 Mariadb10.6 ) plugins : comportements 2.7.3 reports 1.16.0 formcreator 2.13.9, datainjection 2.13.5 fields 1.21.9
Offline
app_token is set in general>api depending on the IP that is Calling API.
is app token passed in headers or in url ?
oh thanks for answering!
replied
app_token => general > api
user_token => preferences > "API token"
Last edited by wtralui (2019-12-11 18:12:58)
Offline
Pages: 1