Skip to content

Instantly share code, notes, and snippets.

@predictioniogists
Created April 1, 2015 23:46
Show Gist options
  • Save predictioniogists/3311e936076d15b6109e to your computer and use it in GitHub Desktop.
Save predictioniogists/3311e936076d15b6109e to your computer and use it in GitHub Desktop.
Create new customer example
$ curl -i -X POST http://localhost:7070/events.json?accessKey= nE9KITDzprLR6utwUJ9a4qDhscsKsjKFlXMcMsxVEdbkQjqYRm8pFcHHDdrM6Cid -H "Content-Type: application/json" -d '{
> "event" : "$set",
> "entityType" : "customer",
> "entityId" : "1",
>
> "properties" : {
> "channel" : "email",
> “DOB” : “1/12/1970”,
> "name" : "sam dolittle"
> },
> }'
HTTP/1.1 201 Created
Server: spray-can/1.3.2
Date: Thu, 12 Mar 2015 22:31:13 GMT
Content-Type: application/json; charset=UTF-8
Content-Length: 57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment