REST API description: Difference between revisions

m
no edit summary
(describe API token usage)
mNo edit summary
Line 67: Line 67:


==== Using API token ====
==== Using API token ====
When using an API token, the Authorization header changes (with API_TOKEN as a placeholder for the real token):
When using an API token, the Authorization header changes (with '''API_TOKEN''' as a placeholder for the real token):
  Invoke-RestMethod -Uri '<nowiki>https://allegro-mm-XXXX/...'</nowiki> -Headers @{Authorization = ("Bearer API_TOKEN")} -ContentType'application/json; charset=utf-8' -Method 'Get' -SkipCertificateCheck
  Invoke-RestMethod -Uri '<nowiki>https://allegro-mm-XXXX/...'</nowiki> -Headers @{Authorization = ("Bearer API_TOKEN")} -ContentType'application/json; charset=utf-8' -Method 'Get' -SkipCertificateCheck


28

edits