Skip to content

Instantly share code, notes, and snippets.

@predictioniogists
Created April 1, 2015 23:46
Show Gist options
  • Save predictioniogists/45a3f718b85de528605c to your computer and use it in GitHub Desktop.
Save predictioniogists/45a3f718b85de528605c to your computer and use it in GitHub Desktop.
Create new order event example
$ curl -i -X POST http://localhost:7070/events.json?accessKey=nE9KITDzprLR6utwUJ9a4qDhscsKsjKFlXMcMsxVEdbkQjqYRm8pFcHHDdrM6Cid -H "Content-Type: application/json" -d '{
> "event" : "$set",
> "entityType" : "order",
> "entityId" : "3",
>
> "properties" : {
> "spend" : "4.01",
> "city" : "san francisco",
> "state" : "CA",
> "store" : "Men Apparel"
> “customer” : “1”
> },
> }'
HTTP/1.1 201 Created
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment