Skip to content

Instantly share code, notes, and snippets.

@seanoshea
Created October 1, 2015 07:19
Show Gist options
  • Save seanoshea/d70aa87f24ced36cae78 to your computer and use it in GitHub Desktop.
Save seanoshea/d70aa87f24ced36cae78 to your computer and use it in GitHub Desktop.
curl and API service
curl -H 'Accept: application/json' -X POST 'http://api.myapi.dev/users/sign_in' -d 'session[email]=tom@ad.com&session[password]=12345678'
@seanoshea
Copy link
Author

Needed to be targeting http://api.myapi.dev/sessions.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment