Title: APPTOKEN is mandatory in python-glpi-api, while optional by GLPI · Issue #31 · unistra/python-glpi-api · GitHub
Open Graph Title: APPTOKEN is mandatory in python-glpi-api, while optional by GLPI · Issue #31 · unistra/python-glpi-api
X Title: APPTOKEN is mandatory in python-glpi-api, while optional by GLPI · Issue #31 · unistra/python-glpi-api
Description: First of all, thank you for your work on this! I noticed an aspect. apirest.php states (random internet accessible instance is for example at https://suporte.inss.gov.br/glpi/apirest.php/ ) this: "App-Token: authorization string provided...
Open Graph Description: First of all, thank you for your work on this! I noticed an aspect. apirest.php states (random internet accessible instance is for example at https://suporte.inss.gov.br/glpi/apirest.php/ ) this: "...
X Description: First of all, thank you for your work on this! I noticed an aspect. apirest.php states (random internet accessible instance is for example at https://suporte.inss.gov.br/glpi/apirest.php/ ) this: &...
Opengraph URL: https://github.com/unistra/python-glpi-api/issues/31
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"APPTOKEN is mandatory in python-glpi-api, while optional by GLPI","articleBody":"First of all, thank you for your work on this!\n\nI noticed an aspect. apirest.php states (random internet accessible instance is for example at https://suporte.inss.gov.br/glpi/apirest.php/ ) this:\n\"App-Token: authorization string provided by the GLPI API configuration. Optional.\" in the \"Init Session\" section.\n\nCurrently python-glpi-api requires apptoken:\n\n1. https://github.com/unistra/python-glpi-api/blob/47e35a1ae53d5fdb57ccd80bcdfe03adcf603404/glpi_api.py#L152\n2. https://github.com/unistra/python-glpi-api/blob/47e35a1ae53d5fdb57ccd80bcdfe03adcf603404/glpi_api.py#L176\n\nLeaving aside documentation aspect, the following patches should fix these.\n\nCurrently from L148\n```\n # Set required headers.\n headers = {\n 'Content-Type': 'application/json',\n 'Session-Token': session_token,\n 'App-Token': apptoken\n }\n```\nTo:\n```\n # Set required headers.\n headers = {\n 'Content-Type': 'application/json',\n 'Session-Token': session_token,\n }\n if apptoken:\n headers['App-Token'] = apptoken\n```\n\nCurrently from L174\n```\n init_headers = {\n 'Content-Type': 'application/json',\n 'App-Token': apptoken\n }\n```\nTo:\n```\n init_headers = {\n 'Content-Type': 'application/json',\n }\n if apptoken:\n init_headers['App-Token'] = apptoken\n```\n","author":{"url":"https://github.com/AldarisPale","@type":"Person","name":"AldarisPale"},"datePublished":"2025-09-13T07:37:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/31/python-glpi-api/issues/31"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:8c32bfc6-5a70-7abb-85a4-2b666f0818d1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 805E:24B6F8:99D326:C3E864:699152C6 |
| html-safe-nonce | 731907b69dfc9d097898ed2732f4e420c224d3fc8d6301d4cc24c003ce1b13c9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDVFOjI0QjZGODo5OUQzMjY6QzNFODY0OjY5OTE1MkM2IiwidmlzaXRvcl9pZCI6IjQyMTk4NTczNzc4NTAxMTg4NTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f8b6e2c395b0dad7683019f0f2a21be2e70335b2fc687ecfd4dcb97f4729a316 |
| hovercard-subject-tag | issue:3412815705 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/unistra/python-glpi-api/31/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f2bff0be813feb07625e9d5c869ee097d757ed09dd0885409bd024eafdbbe531/unistra/python-glpi-api/issues/31 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f2bff0be813feb07625e9d5c869ee097d757ed09dd0885409bd024eafdbbe531/unistra/python-glpi-api/issues/31 |
| og:image:alt | First of all, thank you for your work on this! I noticed an aspect. apirest.php states (random internet accessible instance is for example at https://suporte.inss.gov.br/glpi/apirest.php/ ) this: "... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AldarisPale |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/unistra/python-glpi-api git https://github.com/unistra/python-glpi-api.git |
| octolytics-dimension-user_id | 1830566 |
| octolytics-dimension-user_login | unistra |
| octolytics-dimension-repository_id | 213878072 |
| octolytics-dimension-repository_nwo | unistra/python-glpi-api |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 213878072 |
| octolytics-dimension-repository_network_root_nwo | unistra/python-glpi-api |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width