In CrafterCMS, how can I publish content via the API?
2 answers
Adding to sumerz's answer you can use it to login
curl -i -b cookies.txt -H "Content-Type:application/x-www-form-urlencoded" -H "Accept:application/json, text/plain, */*" -c cookies.txt -X POST -d "username=admin&password=admin" http://localhost:8080/studio/api/1/services/api/1/user/login.json
then you can use -b and -c to make a curl in the session.
+4
source to share