curl
🗞Shell
bash
Examples
-
Send message with authentication header:
curl -H "Authorization: Basic MmNiMWFjNGP4YTFkNGIwMQk0N2JiY2M4ODUxODYwNjc6NWVjNWNjNZQzYjhlNGI0YmEzMmIwZDEyZjIxYT8EYWQ=" -d grant_type=client_credentials https://accounts.spotify.com/api/token -
Send a Post request:
curl 'http://localhost:3030/messages/' -H 'Content-Type: application/json' --data-binary '{ "text": "Hello Feathers!" }'
Discuss on Twitter ● Improve this article: Edit on GitHub