Recent searches


No recent searches

Benedikt Hild's Avatar

Benedikt Hild

Joined Jan 04, 2024

·

Last activity Jan 04, 2024

Following

0

Followers

0

Total activity

3

Vote

1

Subscription

1

ACTIVITY OVERVIEW

Latest activity by Benedikt Hild

Benedikt Hild commented,

CommentAPI and SDK

Hi All,

I ran into the same issues described by some people. Here's my working solution: 

I enconded the credentials mentioned on the dokumention '{email_address}/token:{api_token}'

with UTF-8

$Base64AuthInfo = "{email_address}/token:{api_token}"
$Base64AuthInfo = [convert]::ToBase64String([text.encoding]::UTF8.GetBytes($Base64AuthInfo))

My previous attempt encoding with unicode did not work. 

$Base64AuthInfo = "{email_address}/token:{api_token}"
$Base64AuthInfo = [convert]::ToBase64String([text.encoding]::Unicode.GetBytes($Base64AuthInfo))

 

Maybe a mention of that could be usefull inside the API documentation. 

 

Cheers!!

Benedikt

View comment · Posted Jan 04, 2024 · Benedikt Hild

0

Followers

2

Votes

0

Comments