Skip to content

REST API example

epicmonkey edited this page Sep 28, 2013 · 27 revisions

Authentication

curl -d "username=test" -d "password=test" http://localhost:3000/v1/session

{ "err": null, "status": "success", "user": { "id": "ecad21a5-45be-4eb8-9398-db51415992fb", "username": "test", "info": { "screenName": "test", "email": "[email protected]", "receiveEmails": "0" } } }

Registration

curl -d "username=test" -d "password=test" http://localhost:3000/v1/signup { "err": null, "status": "success", "user": { "id": "f6f55f5d-c0b5-4fae-92e8-4d12b84fbe2d", "username": "test", "info": { "screenName": "test" } } }

Clone this wiki locally