Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GET header API Token for new GLPI versions #30

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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