Powershell,Invoke-WebRequest在哪里/如何包含我的令牌(用于spotify api)?

时间:2017-07-18 11:25:15

标签: powershell spotify

所以这就是我到目前为止所得到的。为了使用the api我需要提供我的令牌,但似乎没有任何参数可以让我这样做。提前致谢! < 3

编辑:Headers无法正常工作(无法输入字符串)。

 $accept = 'application/json'
 $authorization = 'BQDwgz....g1-KGRR'
 $link = 'https://api.spotify.com/v1/users/spotifycharts/playlists/<id>/tracks'


    Invoke-WebRequest -Uri $link -ContentType $accept -??? $authorization -Method Get 

0 个答案:

没有答案