Skip to content

Conversation

@Tedezed
Copy link

@Tedezed Tedezed commented May 7, 2019

Solution to error App token in new version of GLPI: ERROR_WRONG_APP_TOKEN_PARAMETER

Custom example code, dodge TypeError: cannot concatenate 'str' and 'tuple' objects'

import os
from glpi import GLPI
import json

url = "https://glpi.example.com/apirest.php"
user = None
password = None
token = "XXXXXXXXXXXXXXXX"

glpi = GLPI(url, token, token)
glpi.kill()
print glpi.get('getMyProfiles')

@Tedezed Tedezed changed the title Update GET, API Token GLPI Update GET header API Token for new GLPI versions May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant