Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Kald endpoint for at få udleveret bearer token

Panel
bgColor#EAE6FF#DEEBFF

[POST] https://login.microsoftonline.com/20e7a6b4-86e0-4e7a-a34d-6dc5a75d1982/oauth2/v2.0/token

[Required Header]
Content-Type: application/x-www-form-urlencoded

[Body]
grant_type=client_credentials&client_id={{Client Id fra step 1}}&client_secret={{Client Secret fra step 1}}&scope=65877f1b-1aef-42b3-adc7-3009608f27a3/.default

...

Vær opmærksom på, at bearer token har en kort levetid på 1 time.

3. Kald Peek

Panel
bgColor#EAE6FF#DEEBFF

[GET] https://preprod.b2b.datahub3.dk/v1.0/cim/aggregations

[Required Header]
Content-Type: application/json
Authorization: Bearer {{Bearer token fra step 2}}

...