Jump to content
  • 0

API voor Isabel 6


Donamd

Question

Posted (edited)

Ik ben een API koppeling aan het proberen te maken voor Isabel 6.  Via het Isabel Developers Portaal heb ik een sandbox aangemaakt om de verbinding mee te testen en heb chatgpt gevraagd om mij hiermee te helpen.

Ik heb vooraf de globale variabelen bepaald dewelke ik nodig heb in het script.

image.png.c3d7a37d252ad522236261feee14ad0c.png

Het script zoals dit momenteel gemaakt is in inbijlage toegevoegd met het pdf document.

Als ik dit debug krijg ik bij $accounts volgende foutmelding

{"errors":[{"code":"authorizationHeaderMissing","detail":"The 'Authorization' header is missing, it should look like: 'Authorization: Bearer <access_token>'.","meta":{"requestId":"000851F2439EEA740A01068401BB68C5F42D2D438F66AB"}}]}

Iemand een idee wat er fout zou kunnen zijn en/of dit de juiste manier is om de API in te stellen

 

 

API functie.pdf

Edited by Donamd

1 answer to this question

Recommended Posts

  • 0
Posted

Hoe ziet jouw header er uit? In je pdf lees ik:

Screenshot2025-09-14at09_31_26.thumb.png.7a402fe6bb6bb929b1085f4a4d96c97a.png

Terwijl de documentatie en de foutmelding aangeven:

-H "Authorization: Bearer access_token_1550578875" \

Daar zit toch wel enige discrepantie 😊

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...