I keep getting this error in my power point after running the above code (to get an artist from Spotify API) :
curl --request GET \ --url https://api.spotify.com/v1/albums/4aawyAB9vmqN3uQ7FjRGTy \ --header 'Authorization: Bearer XXX'
At line:2 char:5
+ --url 'https://api.spotify.com/v1/search?q=Lilbaby&type=artist' \
+ ~
Missing expression after unary operator '--'.
At line:2 char:5
+ --url 'https://api.spotify.com/v1/search?q=Lilbaby&type=artist' \
+ ~~~
Unexpected token 'url' in expression or statement.
At line:3 char:5
+ --header 'Authorization: Bearer BQCr8A...QoBCa4'
+ ~
Missing expression after unary operator '--'.
At line:3 char:5
+ --header 'Authorization: Bearer BQCr8A...QoBCa4'
+ ~~~~~~
Unexpected token 'header' in expression or statement.
+ CategoryInfo : ParserError: (:) [],
ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingExpressionAfterOperator
I have tried it multiple times but still the same result