Announcements

Token endpoint via PowerShell

Reply
Highlighted

Token endpoint via PowerShell

Casual Listener

Hey all. Anyone have success using Powershell to interact with the Spotify API? I’ve been able to capture to auth code but I’m getting a “something went wrong” back when trying to use Invoke-Restmethod to the /token endpoint. I’ve got the base64 client id/secret and the auth code but I can’t tell why it’s failing and there is no context from the response.

 

 

Operating System

Windows 10

 

 

2 Replies
Highlighted

Re: Token endpoint via PowerShell

Newbie
I had the exact same issue. The alternative method of supplying them in the message body worked fine though. It's not mentioned for the token refresh but works there as well.

So I have it working, but I'd love to know why using the base64/header method refuses to work too. 
Highlighted

Re: Token endpoint via PowerShell

Casual Listener

Thanks. I’ll give that a shot.

SUGGESTED POSTS