0% found this document useful (0 votes)
0 views

api

The document contains examples of using cURL commands to interact with the Spotify API for obtaining an access token and searching for an artist, specifically Taylor Swift. It also includes a cURL command for sending a message via the Twilio API. The commands demonstrate how to set headers and pass data for API requests.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

api

The document contains examples of using cURL commands to interact with the Spotify API for obtaining an access token and searching for an artist, specifically Taylor Swift. It also includes a cURL command for sending a message via the Twilio API. The commands demonstrate how to set headers and pass data for API requests.
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

curl -X POST "https://accounts.spotify.

com/api/token" ^
-H "Authorization: Basic
Y2JmZmFkYWU3MzJhNDUwM2E4NzE5OTk4Mjg0ZWE4NTA6Njg3MDlhZTM3M2FjNDQ0ZjhkOGY5NmMzYzIzZTg
2NDA=" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
-d "grant_type=client_credentials"

BQAIhglhtAfYGvYVTIHkUmWh3G2CM1BKHwtgRXdjJSqXBW0nAY_MrN7ganRKeCs05cs1mL1koD25vqeTdZV
1TYNimfkHQ07ApeywtQ0T8oWaClMl-xL7yDbm3XywK6f1C28Qc7hwh_8

curl -X GET "https://api.spotify.com/v1/search?q=taylor+swift&type=artist" -H


"Accept: application/json" -H "Content-Type: application/json" -H "Authorization:
Bearer
BQAIhglhtAfYGvYVTIHkUmWh3G2CM1BKHwtgRXdjJSqXBW0nAY_MrN7ganRKeCs05cs1mL1koD25vqeTdZV
1TYNimfkHQ07ApeywtQ0T8oWaClMl-xL7yDbm3XywK6f1C28Qc7hwh_8"

AXFR6B64TK84TQJWDGZMJEBZ

curl -X POST
"https://api.twilio.com/2010-04-01/Accounts/ACb011da1efe0226c8e47eb1ac0c482af6/
Messages.json" --data-urlencode "From=+12313592379" --data-urlencode "Body=Hi
there" --data-urlencode "To=+639427631852" -u
ACb011da1efe0226c8e47eb1ac0c482af6:890bdbc0153edf1fee6997f13b4bd701

You might also like