You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2019-12-11 17:49:26

wtralui
Member
Registered: 2019-12-07
Posts: 25

"App_token"

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

#2 2019-12-11 17:52:06

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,287

Re: "App_token"

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

#3 2019-12-11 18:12:31

wtralui
Member
Registered: 2019-12-07
Posts: 25

Re: "App_token"

LaDenrée wrote:

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

Board footer

Powered by FluxBB