Discussions
Authorization failing
almost 4 years ago by Thomas
Hi there,
newbie developer here.
I want to work with the Absences endpoint. Now, first I tested the auth endpoint with the PHP codesnippet provided (https://developer.personio.de/reference#auth-1), in the browser it works fine with my credentials, yielding a security token.
If I execute the exact same code in a PHP script from my machine, I get the error:
{"success":false,"error":{"message":"Wrong number of segments","code":401}}%
The script contains literally nothing except the copy-pasted code. What did I do wrong?