I am using PHP. I have successfully created a user context from the host spec ($opContext) and from that am creating an authenticated uri.
When I use
$url = $opContext->createAuthenticatedUri( "$scheme://$host/d2l/api/lp/1.1/users/whoami", GET )
I am returned the correct JSON block for my user context.
When I use
$url = $opContext->createAuthenticatedUri( "$scheme://$host/d2l/api/lp/1.1/users/", POST )
and change the cURL parameters accordingly, I receive a response of "Invalid Token."
Can you advise why I might be getting this response for only a specific call?